title: When do compilers inline C++ code?
body: <p>In C++, do methods only get inlined if they are explicitly declared <code>inline</code> (or defined in a header file), or are compilers allowed to inline methods as they see fit?</p>