C++ can compilers inline a function pointer?

后端 未结 4 1714
难免孤独
难免孤独 2020-12-02 18:31

Suppose I\'ve got a function functionProxy that takes a generic parameter function and call its operator():

template&l         


        
4条回答
  •  一整个雨季
    2020-12-02 19:26

    Is the compiler able to inline the calls? Yes.

    Will it? Maybe. Check after you know it matters.

提交回复
热议问题