inline vs __inline vs __inline__ vs __forceinline?

后端 未结 3 869
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 08:29

What are the differences between these four inline (key)words?

inline, __inline, __inline__, __forceinline.

3条回答
  •  我在风中等你
    2021-01-30 08:41

    For the Visual Studio compiler it means:

    • inline - suggestion to the compiler to inline your code

    • __forceinline - overrides the builtin compiler optimization and generates inline code

    For more details see: http://msdn.microsoft.com/en-us/library/z8y1yy88%28VS.71%29.aspx

提交回复
热议问题