In C++, do methods only get inlined if they are explicitly declared inline (or defined in a header file), or are compilers allowed to inline methods as they see
inline
If I'm not mistaken, when optimizations are turned on, the compiler will inline any suitable routine or method.