Boost :: bind和Boost Phoenix :: bind之间有什么区别? [英] What is the difference between Boost::bind and Boost Phoenix::bind?
问题描述
Boost :: bind和Boost Phoenix :: bind之间有什么区别?
What is the difference between Boost::bind and Boost Phoenix::bind?
推荐答案
phoenix :: bind
就像 lambda :: bind
一个函数,它返回一个表达式模板,它记录了它必须调用给定的函数。这些设计分别与phoenix和lambda一起工作。因此,它们包含更多的东西。类似地,它们返回的类型重载所有可能的操作符,使得它们各自的动作可以被记录和稍后执行。
phoenix::bind
is like lambda::bind
a function that returns an expression template that records that it has to call the given function. These are designed to work together with phoenix and lambda, respectively. As a result, they contain much more things. Like, the type they return overloads all possible operators so that their respective action can be recorded and executed later.
boost :: bind
是just它将绑定函数,并返回一个类型,该函数调用操作符重载,而不是更多。
boost::bind
is "just" a binder. It will bind the function, and return a type that has the function call operator overloaded, and not much more.
这篇关于Boost :: bind和Boost Phoenix :: bind之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!