69,336
社区成员
发帖
与我相关
我的任务
分享
// 源码里有
typedef Key key_type;
typedef Key value_type;
// 书中的例子
int ia[5] = {0, 1, 2, 3, 4, 5};
set<int> iset(ia, ia+5);
// rb-tree的模版参数
template <class Key, class Value, class KeyOfValue, class Compare, class Alloc = alloc>
类
// 书中举的例子; Key, Value 只是某种类型,好像没有任何区别啊
rb_tree<int, int, identity<int>, less<int> > itree;