I was wondering if there is a sort of naming convention when using inline functions.
Say I am implementing an API and want to let the user decide if he wants to use a normal function or an inline function(both doing the same thing), is there a naming convention how to make it visible to the outside world that a function is potentially inline ? I know that I could look into the .h or .inl file
EDIT: I feel the need to clarify some points since it seems that I wasn't clear enough in the first place.
Lets say I have a function which accepts three values. Something like:
bool MyClass::AddTwoNumbersAndCheckIfBigger(int summandOne, int summandTwo, int biggerNr)
{
bool isBigger = false;
int sum = summandOne+summandTwo;
if(sum > biggerNr)
{
isBigger = true;
}
return isBigger;
}
This function could be called a single time up to x > 1000000. If I call it once I would prefer it to just be called normally but if it is called 1000000 times in a for loop I maybe prefer an inline option.
I want to give the developer the possibility to choose between those two options. I am aware of the fact that the compiler is responsible for deciding if its going to be used as an inline function or not but I guess it would be nice if the developer could decide for himself.
The question for the naming convention arises from the fact that I have users\developers who don't look at the header files but only use intellisense for guidance.