__GNU_PBDS::DETAIL::LU_MAP(3)
π NAME π
__gnu_pbds::detail::lu_map< Key, Mapped, Eq_Fn, _Alloc, Update_Policy > β it's a list-based (with updates) associative container. Skip to the lu, my darling. π
okay so real talk, this page lives in the Library Functions Manual and its whole name is __gnu_pbds...te_Policy >(3) (yes bestie, the header got mangled, we don't talk about it π), and it's all about that lu_map life.
β¨ SYNOPSIS β¨
#include <lu_map_.hpp>
Inherits __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, false >.
π Public Types
allocator_typeβtypedef _Alloc allocator_typecomp_hashβtypedef std::pair< size_type, size_type > comp_hashconst_iteratorβtypedef const_iterator_ const_iteratorconst_pointerβtypedef traits_base::const_pointer const_pointerconst_referenceβtypedef traits_base::const_reference const_referencedifference_typeβtypedef _Alloc::difference_type difference_typeeq_fnβtypedef Eq_Fn eq_fniteratorβtypedef iterator_ iteratorkey_const_pointerβtypedef traits_base::key_const_pointer key_const_pointerkey_const_referenceβtypedef traits_base::key_const_reference key_const_referencekey_pointerβtypedef traits_base::key_pointer key_pointerkey_referenceβtypedef traits_base::key_reference key_referencekey_typeβtypedef traits_base::key_type key_typemapped_const_pointerβtypedef traits_base::mapped_const_pointer mapped_const_pointermapped_const_referenceβtypedef traits_base::mapped_const_reference mapped_const_referencemapped_pointerβtypedef traits_base::mapped_pointer mapped_pointermapped_referenceβtypedef traits_base::mapped_reference mapped_referencemapped_typeβtypedef traits_base::mapped_type mapped_typeno_throw_indicatorβtypedef __nothrowcopy::indicator no_throw_indicatorpoint_const_iteratorβtypedef point_const_iterator_ point_const_iteratorpoint_iteratorβtypedef point_iterator_ point_iteratorpointerβtypedef traits_base::pointer pointerreferenceβtypedef traits_base::reference referencesize_typeβtypedef _Alloc::size_type size_typestore_extraβtypedef integral_constant< int, Store_Hash > store_extrastored_data_typeβtypedef stored_data< value_type, size_type, Store_Hash > stored_data_typeupdate_metadataβtypedef Update_Policy::metadata_type update_metadataupdate_policyβtypedef Update_Policy update_policyvalue_typeβtypedef traits_base::value_type value_type
πΈ Public Member Functions
lu_map (const lu_map< Key, Mapped, Eq_Fn, _Alloc, Update_Policy > &)β the copy-constructor situation π«Άtemplate<typename It> lu_map (It, It)β build one from an iterator range, periodt.iterator begin ()β start of the iterator range.const_iterator begin () constβ const version, same energy.void clear ()β yeet everything outta there.bool empty () constβ is it empty? yes or no, no cap.iterator end ()β the end-of-range iterator.const_iterator end () constβ const version ofend ().bool erase (key_const_reference)β removes by key, returns abool.template<typename Pred> size_type erase_if (Pred)β nukes everything matching Pred, hands you back the count.point_iterator find (key_const_reference r_key)β hunt down that key.point_const_iterator find (key_const_reference r_key) constβ the const find, same mission.std::pair< point_iterator, bool > insert (const_reference)β drops a value in, gives you the iterator + a did-it-actually-insert bool.size_type max_size () constβ the absolute most it can hold.mapped_reference operator[] (key_const_reference r_key)β index by key, get your mapped value. iconic.size_type size () constβ how many things are in here rn.void swap (lu_map< Key, Mapped, Eq_Fn, _Alloc, Update_Policy > &)β swap contents with anotherlu_map, slay.
π Public Attributes
no_throw_indicator m_no_throw_copies_indicatorstore_extra m_store_extra_indicator
π¦ Protected Member Functions
template<typename It> void copy_from_range (It, It)β copies stuff in from a range, protected so it's giving inner-circle only.
π Friends
class const_iterator_class iterator_
π Detailed Description π
template<typename Key, typename Mapped, typename Eq_Fn, typename _Alloc,
typename Update_Policy>
class __gnu_pbds::detail::lu_map< Key, Mapped, Eq_Fn, _Alloc,
Update_Policy >
list-based (with updates) associative container. Skip to the lu, my darling. π
β Author β
Generated automatically by Doxygen for libstdc++ from the source code.
no thoughts, just alibstdc++manpage, bestie β__gnu_pbds...te_Policy >(3), auto-generated by Doxygen, and that's the whole vibe. π«Άβ¨π
π¦ 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