读书人

VS2008 C++智能提醒看不懂

发布时间: 2012-09-18 16:21:42 作者: rapoo

VS2008 C++智能提示看不懂
eg:
我打出一个map,他就给我跳出
map<typename _Kty,typename _Ty,typename _Pr=less<_Kty>,typename _Alloc=allocator<pair<const _Kty,_typ> > >
看不懂他都提示些什么东西啊

求教

[解决办法]
不能怪智能提示,怪可恶的STL源码。
不过你说的这个应该能看懂吧。

C/C++ code
map<typename _Kty, // key 的类型typename _Ty,  // value 的类型typename _Pr=less<_Kty>, // key 的排序规则typename _Alloc=allocator<pair<const _Kty,_typ> > // 内存配置器的类型 >
[解决办法]
STL就这样,你可以自己封装打印函数,想在调试的时候用watch来看,那是做梦
[解决办法]
探讨
eg:
我打出一个map,他就给我跳出
map<typename _Kty,typename _Ty,typename _Pr=less<_Kty>,typename _Alloc=allocator<pair<const _Kty,_typ> > >
看不懂他都提示些什么东西啊

求教

[解决办法]
探讨

不能怪智能提示,怪可恶的STL源码。
不过你说的这个应该能看懂吧。
C/C++ code

map<typename _Kty, // key 的类型
typename _Ty, // value 的类型
typename _Pr=less<_Kty>, // key 的排序规则
typename _Alloc=allocator<pair<const _Kty,_typ> > // 内……

[解决办法]
探讨

不能怪智能提示,怪可恶的STL源码。
不过你说的这个应该能看懂吧。
C/C++ code

map<typename _Kty, // key 的类型
typename _Ty, // value 的类型
typename _Pr=less<_Kty>, // key 的排序规则
typename _Alloc=allocator<pair<const _Kty,_typ> > // 内……

读书人网 >C++

热点推荐