63 namespace std _GLIBCXX_VISIBILITY(default)
65 _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
87 template<
typename _Key,
typename _Compare = std::less<_Key>,
88 typename _Alloc = std::allocator<_Key> >
92 typedef typename _Alloc::value_type _Alloc_value_type;
93 __glibcxx_class_requires(_Key, _SGIAssignableConcept)
94 __glibcxx_class_requires4(_Compare,
bool, _Key, _Key,
95 _BinaryFunctionConcept)
96 __glibcxx_class_requires2(_Key, _Alloc_value_type, _SameTypeConcept)
110 typedef typename _Alloc::template rebind<_Key>::other _Key_alloc_type;
112 typedef _Rb_tree<key_type, value_type, _Identity<value_type>,
119 typedef typename _Key_alloc_type::pointer
pointer;
126 typedef typename _Rep_type::const_iterator
iterator;
147 set(
const _Compare& __comp,
149 : _M_t(__comp, __a) { }
160 template<
typename _InputIterator>
161 set(_InputIterator __first, _InputIterator __last)
163 { _M_t._M_insert_unique(__first, __last); }
176 template<
typename _InputIterator>
177 set(_InputIterator __first, _InputIterator __last,
178 const _Compare& __comp,
181 { _M_t._M_insert_unique(__first, __last); }
193 #ifdef __GXX_EXPERIMENTAL_CXX0X__
202 : _M_t(std::move(__x._M_t)) { }
215 const _Compare& __comp = _Compare(),
218 { _M_t._M_insert_unique(__l.begin(), __l.end()); }
235 #ifdef __GXX_EXPERIMENTAL_CXX0X__
268 this->
insert(__l.begin(), __l.end());
278 {
return _M_t.key_comp(); }
282 {
return _M_t.key_comp(); }
286 {
return _M_t.get_allocator(); }
295 {
return _M_t.begin(); }
304 {
return _M_t.end(); }
313 {
return _M_t.rbegin(); }
322 {
return _M_t.rend(); }
324 #ifdef __GXX_EXPERIMENTAL_CXX0X__
332 {
return _M_t.begin(); }
341 {
return _M_t.end(); }
350 {
return _M_t.rbegin(); }
359 {
return _M_t.rend(); }
365 {
return _M_t.empty(); }
370 {
return _M_t.size(); }
375 {
return _M_t.max_size(); }
390 { _M_t.swap(__x._M_t); }
410 _M_t._M_insert_unique(__x);
414 #ifdef __GXX_EXPERIMENTAL_CXX0X__
419 _M_t._M_insert_unique(std::move(__x));
445 {
return _M_t._M_insert_unique_(__position, __x); }
447 #ifdef __GXX_EXPERIMENTAL_CXX0X__
450 {
return _M_t._M_insert_unique_(__position, std::move(__x)); }
462 template<
typename _InputIterator>
464 insert(_InputIterator __first, _InputIterator __last)
465 { _M_t._M_insert_unique(__first, __last); }
467 #ifdef __GXX_EXPERIMENTAL_CXX0X__
477 { this->
insert(__l.begin(), __l.end()); }
480 #ifdef __GXX_EXPERIMENTAL_CXX0X__
498 {
return _M_t.erase(__position); }
512 { _M_t.erase(__position); }
528 {
return _M_t.erase(__x); }
530 #ifdef __GXX_EXPERIMENTAL_CXX0X__
547 {
return _M_t.erase(__first, __last); }
562 { _M_t.erase(__first, __last); }
587 {
return _M_t.find(__x) == _M_t.end() ? 0 : 1; }
605 {
return _M_t.find(__x); }
609 {
return _M_t.find(__x); }
626 {
return _M_t.lower_bound(__x); }
630 {
return _M_t.lower_bound(__x); }
642 {
return _M_t.upper_bound(__x); }
646 {
return _M_t.upper_bound(__x); }
667 {
return _M_t.equal_range(__x); }
671 {
return _M_t.equal_range(__x); }
674 template<
typename _K1,
typename _C1,
typename _A1>
678 template<
typename _K1,
typename _C1,
typename _A1>
694 template<
typename _Key,
typename _Compare,
typename _Alloc>
698 {
return __x._M_t == __y._M_t; }
711 template<
typename _Key,
typename _Compare,
typename _Alloc>
713 operator<(const set<_Key, _Compare, _Alloc>& __x,
715 {
return __x._M_t < __y._M_t; }
718 template<
typename _Key,
typename _Compare,
typename _Alloc>
722 {
return !(__x == __y); }
725 template<
typename _Key,
typename _Compare,
typename _Alloc>
729 {
return __y < __x; }
732 template<
typename _Key,
typename _Compare,
typename _Alloc>
734 operator<=(const set<_Key, _Compare, _Alloc>& __x,
736 {
return !(__y < __x); }
739 template<
typename _Key,
typename _Compare,
typename _Alloc>
743 {
return !(__x < __y); }
746 template<
typename _Key,
typename _Compare,
typename _Alloc>
751 _GLIBCXX_END_NAMESPACE_CONTAINER