C/C++
set

set , ( ) .

template ,
class Allocator = allocator> class set

Key - , a Comp - , . set .

explicit set(const Comp &cmpfn = Comp(), const Allocator &a = Allocator));
set(const set &ob);
template setdnlter start, InIter end,
const Comp &cmpfn = Comp(), const Allocator &a = Allocator());

, , , ob. , , start end. , cmpfn( ), .

set : ==, <, <=, !=, > >=.

multiset -.

-
iterator begin();
const_iterator begin() const;
void clear();
size_type count(const key_type &k) const; k
bool empty() const; true, , false
iterator end();
const_iterator end() const;
pair equal_range(const key_type &k) const; , ,
void erase(iterator i); , i
void erase(iterator start, iterator end); , start end
size_type erase(const key_type &k); , k.
iterator find(const key_type &k); . ,
allocator_type get_allocator() const;
iterator insert(iterator i, const value_type &val); val , i. - .
template void insert(InIter start, Inlter end); . -
pair insert(const value_type &val); val . . , . , pair. pair
key_compare key_comp() const; ,
iterator lower_bound(const key_type &k)const; , k
size_type max_size() const; ,
reverse_iterator rbegin();
const_reverse_iterator rbegin() const;
reverse_iterator rend();
const_reverse_iterator rend() const;
size_type size() const;
void swap(set &ob); ob
iterator upper_bound(const key_type &k) const; , k
value_compare value_comp() const; -,






Нет комментариев.



Оставить комментарий:
Ваше Имя:
Email:
Антибот: *  
Ваш комментарий: