"sks_cpp" <sk*****@hotmail.com> wrote in message news:<As*********************@news2.central.cox.ne t>...
I want to inline a function operator (part of a functor class) that does a
push_back on a list container.
Would the compiler inline this method or not? How can I tell?
Since the method "push_back" can throw an exception, does that make a
difference as to how the compiler determines if the function is inline'able
or not?
Thanks.
On a practical note, if you define the function within your class
definition it will likely be inlined. You can *probably* grep your
compiler's symbol map output file to see if it was inlined (not
finding it in the file means it's probably inlined).
Further details can probably be found in your compiler documentation.
Dunno anything about exception throwing effects on inlineing.
Ryan