Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #9167
      RainerRainer
      Keymaster
        Up
        1
        Down
        ::

        A function declaration static inline like “static inline int func() { return 42; }” means:
        static: The function is only visible inside the translation unit. The translation unit is what you get after the preprocessor run.
        inline: Has no effect because inline is only a hint for the optimizer to replace a function call with the function body. Read more about it here: https://www.modernescpp.com/index.php/component/jaggyblog/inline

    Viewing 0 reply threads
    • You must be logged in to reply to this topic.