是什么的boost ::绑定和boost ::拉姆达::绑定之间的区别? [英] What is the difference between boost::bind and boost::lambda::bind?

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

问题描述

我可以看到,有两个不同的绑定库升压,一是独立,即可以通过包括升压/ bind.hpp 使用,而另一个由包括升压/λ/ bind.hpp 。什么是这两者之间有什么区别?

I can see that there are two different bind libraries for Boost, one "standalone", that can be used by including boost/bind.hpp, and another by including boost/lambda/bind.hpp. What's the difference between these two?

推荐答案

看一看解释此处的 http://boost.org/doc/libs/1_46_0/doc/html/lambda/s08.html#id2143701

他们有重叠的功能,但与语义差异,他们不能被交错使用。

They have overlapping functionality but with semantic differences, they can't be used interleaved.

这篇关于是什么的boost ::绑定和boost ::拉姆达::绑定之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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