Różnice między wybraną wersją a wersją aktualną.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
opis_kontenera_hash_multimap [2008/12/13 02:42] gmroziew |
opis_kontenera_hash_multimap [2008/12/13 02:52] gmroziew |
||
---|---|---|---|
Linia 24: | Linia 24: | ||
==== Kontruktory ==== | ==== Kontruktory ==== | ||
- | * hash_multimap() | + | * hash_multimap() : kontruktor domyślny |
- | * hash_multimap(size_type n) | + | * hash_multimap(size_type n) : konstruktor ze wskazanie ilości pojemników mapy //n// |
- | * hash_multimap(size_type n, const hasher& h) | + | * hash_multimap(size_type n, const hasher& h) : konstruktor ze wskazanie ilości pojemników mapy //n// i funkcji mieszającej //h// |
- | * hash_multimap(size_type n, const hasher& h, const key_equal& k) | + | * hash_multimap(size_type n, const hasher& h, const key_equal& k) : konstruktor ze wskazanie ilości pojemników mapy //n//, funkcji mieszającej //h// i binarnego predykatu do porównywania kluczy //k// |
- | * hash_multimap(const hash_multimap&) | + | * hash_multimap(const hash_multimap&) : konstruktor kopiujący |
* template <class InputIterator> hash_multimap(InputIterator, InputIterator) | * template <class InputIterator> hash_multimap(InputIterator, InputIterator) | ||
* template <class InputIterator> hash_multimap(InputIterator, InputIterator, size_type n) | * template <class InputIterator> hash_multimap(InputIterator, InputIterator, size_type n) | ||
Linia 36: | Linia 36: | ||
==== Dodawanie elementów ==== | ==== Dodawanie elementów ==== | ||
- | * iterator insert(const value_type& x) | + | * iterator insert(const value_type& x) - Wstawia element //x// |
* template <class InputIterator> void insert(InputIterator, InputIterator); | * template <class InputIterator> void insert(InputIterator, InputIterator); | ||
==== Usuwanie elementów ==== | ==== Usuwanie elementów ==== | ||
- | * void erase(iterator pos) | + | * void erase(iterator pos) : Usuwa element wskazany przez iterator //pos// |
- | * size_type erase(const key_type& k) | + | * size_type erase(const key_type& k) : Usuwa elementy identyfikowane kluczem //k// |
- | * void erase(iterator first, iterator last) | + | * void erase(iterator first, iterator last) : Usuwa elementy z zakresu wskazanego iteratorami //first// - //last// |
- | * void clear() | + | * void clear() : Czyści kolekcję |
==== Wyszukiwanie elementów ==== | ==== Wyszukiwanie elementów ==== |