The inline and __inline specifiers instruct the compiler to insert a copy of the function body into each place the function is called.

 
  • 相当于把这段代码直接编辑在调用处,不进行栈的操作,一般在类中,很短小的成员函数使用,例如:
今日热词
目录 附录 查词历史