什么是绑定加速之间的区别::和Boost凤凰::绑定? [英] What is the difference between Boost::bind and Boost Phoenix::bind?

查看:111
本文介绍了什么是绑定加速之间的区别::和Boost凤凰::绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么的boost ::绑定和Boost凤凰::绑定?

What is the difference between Boost::bind and Boost Phoenix::bind?

推荐答案

凤凰::绑定拉姆达::绑定返回一个记录,它必须调用特定功能的EX pression模板的功能。这些被设计成与凤凰和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 ::绑定是公正的粘合剂。这将绑定的功能,并返回具有重载函数调用操作符类型,而不是更多。

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凤凰::绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆