腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(1988)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
TR1
:函数和
tr1
::bind
我将以下内容放入Ideone.com (和codepad.org)中:#include <string> } const std::string name_; { std::
tr1
::function<void(const std::string&)&g
浏览 1
修改于2020-06-20
得票数 3
回答已采纳
6
回答
如何包含
TR1
?
不同的编译器似乎对
TR1
有不同的想法。G++似乎只接受以下类型的包含:#include <
tr1
/memory>有没有办法让G++接受第二个版本?一般情况下,如何以可移植的方式处理
TR1
?
浏览 3
修改于2009-08-04
得票数 29
回答已采纳
6
回答
std::
tr1
::function和std::
tr1
::bind
class myIntegratorpublic: double getValue( double x, double Q2 ) const std::
tr1
::function<integrand> func(std::
tr1
::bind(&a
浏览 12
修改于2011-05-01
得票数 4
回答已采纳
2
回答
TR1
共享阵列
我很难在
TR1
文档中找到关于共享数组的参考资料。Boost文档非常清楚地说明了C++ "new“和"new[]”表达式之间的显著区别。我正在更新一些代码以使用
TR1
shared_ptr模板和相关函数,但我没有发现提到shared_array。
TR1
shared_ptr实现是否区分"new“和"new[]",并正确销毁这些指针?据我所知,从
TR1
规范来看,它似乎不是。如果是这样的话,我应该仍然使用boost shared_array模板来进行"new[]“样式的
浏览 1
提问于2009-03-09
得票数 15
回答已采纳
2
回答
包含
tr1
::shared_ptr
我已经在我的类文件中包含了#include </usr/include/c++/4.4.3/
tr1
/shared_ptr.h>,当我试图编译我的类时,我得到以下错误:/usr/include/c++/4.4.3/
tr1
/shared_ptr.h:61:46: error: '_Lock_policy' has not bee
浏览 0
修改于2011-03-03
得票数 5
回答已采纳
1
回答
在对
tr1
::
tr1
::bind<> ()的新调用中嵌套来自
tr1
::bind()的绑定对象
#include <iostream>#include <
tr1
/functional>using
tr1
::bind; return 2*a;void print_num(实际上是no matching function for call to object
浏览 0
修改于2013-02-17
得票数 2
回答已采纳
3
回答
tr1
::mem_fn和
tr1
::bind: on const-正确性和重载
#include <
tr1
/functional>#include <iostream> {}main(int argc, char *argv[]) const abc x; return
浏览 5
修改于2008-11-22
得票数 5
回答已采纳
1
回答
在Ubuntu上链接
TR1
?
我使用std::
tr1
::regex编写了一个类,但我不知道如何链接它。::regex_search(_Bi_iter, _Bi_iter, std::
tr1
::match_results<_Bi_iter, _Allocator>&, const std::
tr1
::basic_regex`std::
tr1
::basic_regex<char, std::
tr1
::regex_traits<char> >::basic_regex(char const*, u
浏览 1
修改于2011-05-01
得票数 2
回答已采纳
1
回答
tr1
::function WINAPI
如何通过WINAPI调用约定使用
tr1
::函数?(至少在windows中)。我可以使用visual c++ 9 SP1
TR1
或BOOST的one... typedef void (WINAPI *GetNativeSystemInfoPtr)(LPSYSTEM_INFO);
浏览 0
提问于2010-02-09
得票数 4
回答已采纳
1
回答
std::
tr1
::array编译错误
requires a type specifier for all declarations我的代码是: dfs(Graphnode _root, qu
浏览 0
修改于2013-04-04
得票数 2
回答已采纳
2
回答
使用
tr1
::function时编译错误
(typename std::
tr1
::result_of 0)>(_Bound_args,std::
tr1
::tuple<_UElements ...>)>:类型.)*,std::
tr1
::_Placeholder<1>âstd::
tr1
::_Function_handler::_M_invoke实例化从-静态空洞std::
tr1
::_Function_handler::
tr1
::_Placeholder<1>)>,_ArgType
浏览 2
提问于2013-05-01
得票数 0
回答已采纳
2
回答
如何在Visual Studio2010中使用
tr1
(
tr1
::function)?
如何开始使用Visual Studio2010的
tr1
特性?对于更具体的情况,我需要std::
tr1
::函数。我尝试包含报告为丢失的#include <
tr1
/functional>,而#include <functional>包含正常,但当我设置以下内容时:我得到了: 1>d:\marmalade\projects\core\src\button.h(21): error C3083:
浏览 0
修改于2012-05-02
得票数 8
回答已采纳
3
回答
tr1
::unique_ptr和SelectObject()
::_Bind2<_Callable,_Arg0,_Arg1>::_ApplyX<_Rx,void&,std::
tr1
::_Nil&,std::
tr1
::_Nil&,std::
tr1
::_Nil&,std::
tr1
::_Nil&,std::
tr1
::_Nil&,std::
tr1
::_Nil&,std::
tr1
::_Nil&,std::
tr1
::_Nil&,std:
浏览 5
修改于2010-09-02
得票数 2
回答已采纳
2
回答
使用
tr1
::regex时链接器错误
我有一个使用
tr1
::regex的程序,它在编译时会给我提供非常冗长的链接器错误。以下是我的头文件MapObject.hpp:#include <string>#include "phBaseObject.hpp_ZNSt3tr111basic_regexIcNS_12regex_traitsIcEEEC1EPKcj[std::
tr1
::basic_regex<char, std::
tr
浏览 5
提问于2010-05-18
得票数 2
回答已采纳
3
回答
TR1
功能组播
您将如何为
TR1
函数器实现多播?我的回调槽实现如下{} 但需要在其中一个中传递多个回调
浏览 0
修改于2017-05-23
得票数 0
回答已采纳
3
回答
cstdint与
tr1
/cstdint的区别
<cstdint>和<
tr1
/cstdint>有什么区别?(除此之外,一个放在名称空间std::中,另一个放在std::
tr1
::中)答案可能是没有,但你不能到处向std::添加东西,除非有,嗯,标准的。因此,在c++0x标准化之前,必须使用<cstdint>发出错误,但是在添加到
tr1
::名称空间时
浏览 1
修改于2010-07-02
得票数 3
回答已采纳
1
回答
libstdc++ -由于
tr1
/regex导致编译失败
std::
tr1
::regex_match<char const*, char, std::
tr1
::regex_traits<char> >(char const*, char const*,std::
tr1
::basic_regex<char, std::
tr1
::regex_traits<char> > const&, std::bitset<11u>)': /usr/include/<std::
浏览 0
修改于2011-01-18
得票数 0
回答已采纳
1
回答
TR1
regex:捕获组?
我正在使用 (对于VS2010),我试图为一个名为"name“的组搜索特定的模式,为一个名为"value”的组搜索另一个模式。我想我想要的是一个捕获组,但我不确定这是否是正确的术语。我希望将匹配分配到模式"^:\r\n+):\s“到名为"name”的匹配列表,并将模式“^\r\n+)\r\n+”的匹配分配到称为“值”的匹配列表。string pattern = "((?<name>[^:\r\n]+):\s(?<value>[^\r\n]+)\r\n)+"; 但是regex T4R1头
浏览 4
提问于2011-06-18
得票数 3
回答已采纳
2
回答
std::
tr1
和visual studio 2017
我刚刚升级到VS2017,现在我收到了很多这样的错误:error C3083: '
tr1
': the symbolto the left of a '::' must be a type 在VS2017中使用std::
tr1
是否需要一些编译器选项?
浏览 25
修改于2017-03-17
得票数 14
回答已采纳
3
回答
std::
tr1
::mem_fn返回类型
我想把结果放在这里:在一个变量中,这个变量的类型是什么?它看起来像这样:另外,std::
tr1
::bind的结果类型是什么? 谢谢!
浏览 3
提问于2010-08-03
得票数 6
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券