Can I selectively (force) inline a function?

后端 未结 6 557
执念已碎
执念已碎 2020-12-28 13:46

In the book Clean Code (and a couple of others I have come across and read) it is suggested to keep the functions small and break them up if they become large. It also sugge

6条回答
  •  情话喂你
    2020-12-28 14:11

    No, inline is a recommendation to the compiler ; it does not force it to do anything. Also, if you're working with MSVC++, note that __forceinline is a misnomer as well ; it's just a stronger recommendation than inline.

提交回复
热议问题