腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(158)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
使用std::
bind2nd
和推力
我正在尝试使用std::
bind2nd
的推力。我的代码可以用主机指针编译,但不能用设备指针编译。我认为它们是相同的,应该在这两种情况下都有效。); std::
bind2nd
); std::
浏览 1
提问于2013-03-01
得票数 1
回答已采纳
4
回答
使用bind1st还是
bind2nd
?
// method one
bind2nd
(plus<int>(), 5)); // method two因为,到
浏览 1
提问于2011-07-29
得票数 5
1
回答
boost::trim和std::
bind2nd
我知道工作起来很优雅,但是我不明白为什么 std::
bind2nd
(std::ptr_funtypename _Operation::first_argument_type = std::basic_string<char>&]’ cannot be overloaded 为什么std::
bind2nd
浏览 2
修改于2017-05-23
得票数 0
回答已采纳
3
回答
C++
bind2nd
问题
在这个问题中,你需要实现一些类似于std::
bind2nd
的东西。为简单起见,main是使用“For”-loop编写的,但它可以用“for each”和STL容器重写。
浏览 0
修改于2011-07-23
得票数 1
回答已采纳
2
回答
用户定义类的
Bind2nd
问题
我正在努力学习如何在用户定义的类中使用
bind2nd
,但是我遇到了一个错误,尽管我努力寻找其他资源来提供帮助,但我还是想不出如何解决这个问题。 bases.push_back(i); std::transform(bases.begin(), bases.end(), bases.begin(), std::
bind2nd
浏览 3
提问于2013-07-21
得票数 0
回答已采纳
1
回答
msdn
bind2nd
函数示例
我试图通过查看:来了解
bind2nd
我如何纠正这段代码,使其能够编译vector<int>::iterator::difference_type result1a; result1a = count_if( v1.begin(), v1.end(),
bind2nd
浏览 1
提问于2015-05-21
得票数 0
3
回答
bind2nd
循环中的for_each
仔细看后,我认为这是因为
bind2nd
函数的返回值被丢弃了;也就是说,函数不会修改容器的元素。 vector<int> v1(mynumbers, mynumbers + 6); for_each(v1.begin(), v1.end(),
bind2nd
浏览 0
提问于2016-03-29
得票数 1
回答已采纳
1
回答
VS2012
bind2nd
不是性病的成员
在这个源代码中,我使用指定的函数
bind2nd
,并使用std::bind2,一切都很完美。当我用vs2012编译相同的代码时,我会看到一个错误,说明
bind2nd
不是std的成员。因此,遵循包含这个
bind2nd
的链应该是std的一部分,我的代码不应该失败,但它是失败的。我没有任何想法了,所以任何想法都会受到欢迎。 干杯
浏览 4
提问于2014-02-17
得票数 3
回答已采纳
1
回答
直接从bind1st和
bind2nd
调用返回函子
bind1st和
bind2nd
的返回值是从unary_function导出的。通过调用它们,我认为它们提供了一个接受一个参数的函数对象。但这可能是错的。{ _T operator()(_T arg1, _T arg2) const {return arg1 + arg2;}
bind2nd
(fun<int>(),10)(10); //My intention is to directly call the results of <e
浏览 2
提问于2013-12-12
得票数 0
回答已采纳
2
回答
如何使用绑定器和
bind2nd
函数器?
如何使用binder2nd、
bind2nd
和bind1st?更具体地说,什么时候使用它们,它们是必要的吗?另外,我正在寻找一些例子。
浏览 1
提问于2009-09-21
得票数 1
回答已采纳
2
回答
find_if和
bind2nd
与lower_bound、upper_bound的等价性
我的任务是从一些代码中删除
bind2nd
。std::vector<double>::const_iterator it = std::find_if(m_x.begin(), m_x.end(), std::
bind2nd
(std::greater<double>(), x)); std::vector<double>::const_iterator it = std::find_if(m_x
浏览 3
修改于2020-08-12
得票数 0
回答已采纳
2
回答
如何使用bind1st和
bind2nd
?
separator;我想做的是:// .../usr/include/c++/4.3/backward/binders.h: In function ‘std::binder2nd<_Operation> std::
bind2nd
浏览 2
修改于2009-09-13
得票数 16
回答已采纳
1
回答
排序向量上std::find_if和std::
bind2nd
的替代
vector<GregorianDate>::const_iterator it = std::find_if( dates.end(), std::lower_bound(dates.begin(), dates.end(), date); 因为
bind2nd
浏览 23
提问于2019-04-18
得票数 1
回答已采纳
1
回答
对于C++的std::
bind2nd
,有没有内置的Haskell等价物?
下面是我的定义和一个简单的例子:
bind2nd
f b = \a -> f a b foo n b | b = show nalwaysN =
bind2nd
浏览 2
提问于2009-01-30
得票数 4
回答已采纳
4
回答
bind1st和
bind2nd
我在下面的参考文献中有一个观点:
浏览 2
提问于2011-05-24
得票数 2
回答已采纳
1
回答
STL:使用ptr_fun调用"const T &“类型的
bind2nd
呼叫可以很好地 bool foo(int, int
浏览 1
修改于2011-07-25
得票数 3
回答已采纳
1
回答
for_each
bind2nd
mem_fun诉2005
iterator endIter = toCopy->_Data.end(); ( endIter,
bind2nd
浏览 2
提问于2013-11-01
得票数 0
回答已采纳
3
回答
带find_if和函子的vector<Message*>上的
bind2nd
iterator responseit omciResponses.end(),
bind2nd
那么,如何使用
bind2nd
方法来实现这一点呢?
浏览 6
修改于2015-08-28
得票数 3
回答已采纳
2
回答
const_iterator、find_if和
bind2nd
:没有匹配的错误调用
const_iterator my_currency = find_if(Bill::currency_code_map().begin(), Bill::currency_code_map().end(),
bind2nd
浏览 1
提问于2014-04-09
得票数 0
回答已采纳
1
回答
mem_fun +
bind2nd
允许使用任意类型的参数调用方法
; f2.s = "Bla"; b.a = 100; execute (std::
bind2nd
浏览 3
修改于2017-09-08
得票数 7
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
点击加载更多
领券