inline vs __inline vs __inline__ vs __forceinline?

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

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

inline, __inline, __inline__, __forceinline.

3条回答
  •  Happy的楠姐
    2021-01-30 08:48

    __inline, __inline__ and __forceinline are all implementation specific. Because of the double underscore they are all identifiers reserved for the implementation so shouldn't conflict with identifiers used in applications.

    inline is the only C++ keyword.

提交回复
热议问题