Create Inline function in C++