Alex Rivera | Logout

inline vs __inline vs __inline__ vs __forceinline?

Asked 2010-05-04T12:24:37.083
86

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

inline, __inline, __inline__, __forceinline.

Edit
Report

1 Answer

23

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

inline is the only C++ keyword.

answered 2010-05-04T12:28:15.810

Your Answer