When should I use __forceinline instead of inline?

前端 未结 12 1389
旧巷少年郎
旧巷少年郎 2021-01-01 09:34

Visual Studio includes support for __forceinline. The Microsoft Visual Studio 2005 documentation states:

The __forceinline keyword overrides the co

12条回答
  •  甜味超标
    2021-01-01 09:47

    The only way to be sure is to measure performance with and without. Unless you are writing highly performance critical code, this will usually be unnecessary.

提交回复
热议问题