__GNU_CXX::HASH_MULTISET(3)
π NAME π
__gnu_cxx::hash_multiset< _Value, _HashFcn, _EqualKey, _Alloc > β bestie, this is a hash_multiset, and it lives in the Library Functions Manual (section 3, the library-functions girlies π
).
β¨ SYNOPSIS β¨
First things first, you gotta pull it in:
#include <hash_set>
yes babes,<hash_set>β not<unordered_set>. This is the old-school one. iykyk π«Ά
πΈ Public Types πΈ
These are all the little type aliases it hands you. Copied exactly, no cap:
typedef _Ht::allocator_type allocator_typetypedef _Ht::const_iterator const_iteratortypedef _Alloc::const_pointer const_pointertypedef _Alloc::const_reference const_referencetypedef _Ht::difference_type difference_typetypedef _Ht::hasher hashertypedef _Ht::const_iterator iteratortypedef _Ht::key_equal key_equaltypedef _Ht::key_type key_typetypedef _Alloc::pointer pointertypedef _Alloc::reference referencetypedef _Ht::size_type size_typetypedef _Ht::value_type value_type
not me noticingiteratorandconst_iteratorare literally the same typedef here π that's just how it is, bestie,_Ht::const_iteratorfor both, periodt.
π Public Member Functions π
Okay so this is the whole menu of constructors and methods, and every single one is staying on this list, fr fr:
template<class _InputIterator> hash_multiset (_InputIterator __f, _InputIterator __l)template<class _InputIterator> hash_multiset (_InputIterator __f, _InputIterator __l, size_type __n)template<class _InputIterator> hash_multiset (_InputIterator __f, _InputIterator __l, size_type __n, const hasher &__hf)template<class _InputIterator> hash_multiset (_InputIterator __f, _InputIterator __l, size_type __n, const hasher &__hf, const key_equal &__eql, const allocator_type &__a=allocator_type())hash_multiset (size_type __n)hash_multiset (size_type __n, const hasher &__hf)hash_multiset (size_type __n, const hasher &__hf, const key_equal &__eql, const allocator_type &__a=allocator_type())iterator begin () constsize_type bucket_count () constvoid clear ()size_type count (const key_type &__key) constsize_type elems_in_bucket (size_type __n) constbool empty () constiterator end () constpair< iterator, iterator > equal_range (const key_type &__key) constsize_type erase (const key_type &__key)void erase (iterator __f, iterator __l)void erase (iterator __it)iterator find (const key_type &__key) constallocator_type get_allocator () consthasher hash_funct () consttemplate<class _InputIterator> void insert (_InputIterator __f, _InputIterator __l)iterator insert (const value_type &__obj)iterator insert_noresize (const value_type &__obj)key_equal key_eq () constsize_type max_bucket_count () constsize_type max_size () constvoid resize (size_type __hint)size_type size () constvoid swap (hash_multiset &hs)
three wholeeraseoverloads and aresize, like okay versatile queen π. Andinsert_noresizeis right there for when you're feeling brave (no extra rehash, it just Does That).
π¦ Friends π¦
One (1) friend, and she's the equality girl:
template<class _Val, class _HF, class _EqK, class _Al> bool operator== (const hash_multiset< _Val, _HF, _EqK, _Al > &, const hash_multiset< _Val, _HF, _EqK, _Al > &)
π«Ά DETAILED DESCRIPTION π«Ά
Here's the actual class declaration, verbatim, don't touch it:
template<class _Value, class _HashFcn = hash<_Value>, class _EqualKey =
equal_to<_Value>, class _Alloc = allocator<_Value>>
class __gnu_cxx::hash_multiset< _Value, _HashFcn, _EqualKey, _Alloc >
And the description is literally, quote unquote: "This is an SGI extension."
That's it. That's the whole description. iconic of her honestly π
Todo β Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html not the Todo section saying "Needs documentation!" π girl same, we're all a work in progress π
π AUTHOR π
Generated automatically by Doxygen for libstdc++ from the source code.
okay that's the whole page bestie, slay, go hash something π
β¨ This one came to you from the libstdc++ girlies β the manpage header reads __gnu_cxx::hash_multiset< _Value, _HashFcn, _EqualKey, _Alloc >(3) and the footer signs off as libstdc++, same title, page 3. mwah π«Άππ
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms