Understanding std::function and std::bind

前端 未结 2 755
春和景丽
春和景丽 2021-02-15 05:23

I was playing arround with std::function and std::bind and I noticed something unintuitive and I would like to understand it better.

For example:

void fu         


        
2条回答
  •  温柔的废话
    2021-02-15 05:41

    The forwarding call wrapper generated by a call to function template bind can accept any number of extra parameters; these will be ignored. The effective arity and minimal signature of a bind expression is determined by the placeholders used in its construction, and which callable argument(s) they are bound to.

提交回复
热议问题