__GNU_PBDS::DETAIL::LU_MAP(3cxx)
π
__gnu_pbds::detail::lu_map< Key, Mapped, Eq_Fn, _Alloc, Update_Policy > β NAME energy β¨
okay so this is straight out of the libstdc++ 3cxx manual pages (yes bestie, the Doxygen-generated ones), and we're talking about:
__gnu_pbds::detail::lu_map< Key, Mapped, Eq_Fn, _Alloc, Update_Policy > β a list-based (with updates) associative container. Skip to the lu, my darling. π
β¨ SYNOPSIS β¨
#include <lu_map_.hpp>
It inherits __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, false >. like, that's its whole ancestry, no cap π§¬
π Public Types π
bestie there are SO many typedefs and I am listing every single one, we don't skip π
_Alloc allocator_typeβ the allocator, obviouslystd::pair< size_type, size_type > comp_hashβ a lil pair of sizes, doing hash-adjacent thingsconst_iterator_ const_iteratorβ the const iterator, the one that won't let you touch anythingtraits_base::const_pointer const_pointerβ const pointer from traitstraits_base::const_reference const_referenceβ const reference from traits_Alloc::difference_type difference_typeβ the difference type, courtesy of_AllocEq_Fn eq_fnβ your equality functioniterator_ iteratorβ the regular iterator, the main charactertraits_base::key_const_pointer key_const_pointerβ const pointer to a keytraits_base::key_const_reference key_const_referenceβ const reference to a keytraits_base::key_pointer key_pointerβ pointer to a keytraits_base::key_reference key_referenceβ reference to a keytraits_base::key_type key_typeβ the key type itselftraits_base::mapped_const_pointer mapped_const_pointerβ const pointer to a mapped valuetraits_base::mapped_const_reference mapped_const_referenceβ const reference to a mapped valuetraits_base::mapped_pointer mapped_pointerβ pointer to a mapped valuetraits_base::mapped_reference mapped_referenceβ reference to a mapped valuetraits_base::mapped_type mapped_typeβ the mapped type itself__nothrowcopy::indicator no_throw_indicatorβ indicator that says "this copy doesn't throw" π«Άpoint_const_iterator_ point_const_iteratorβ const "point" iteratorpoint_iterator_ point_iteratorβ "point" iterator, very demuretraits_base::pointer pointerβ plain old pointertraits_base::reference referenceβ plain old reference_Alloc::size_type size_typeβ the size type, from_Allocintegral_constant< int, Store_Hash > store_extraβ integral constant wrappingStore_Hashstored_data< value_type, size_type, Store_Hash > stored_data_typeβ the stored-data type, built fromvalue_type,size_typeandStore_HashUpdate_Policy::metadata_type update_metadataβ the update policy's metadata typeUpdate_Policy update_policyβ the update policy itself, iconictraits_base::value_type value_typeβ the value type, the moment
π₯ Public Member Functions π₯
lu_map (const lu_map< Key, Mapped, Eq_Fn, _Alloc, Update_Policy > &)β copy constructor, it copies the whole thingtemplate<typename It > lu_map (It, It)β construct from a range of iterators, from It to Ititerator begin ()β start of the non-const iteratorsconst_iterator begin () constβ start of the const iteratorsvoid clear ()β wipes it, empty, gone, πbool empty () constβ is it empty? tells youiterator end ()β end of the non-const iteratorsconst_iterator end () constβ end of the const iteratorsbool erase (key_const_reference)β erase by key, returns a booltemplate<typename Pred > size_type erase_if (Pred)β erase everything matching Pred, returns how many you nukedpoint_iterator find (key_const_reference r_key)β find byr_key, gives you apoint_iteratorpoint_const_iterator find (key_const_reference r_key) constβ const find byr_key, gives you apoint_const_iteratorstd::pair< point_iterator, bool > insert (const_reference)β insert aconst_reference, get back a pair of iterator + boolsize_type max_size () constβ the biggest it can bemapped_reference operator[] (key_const_reference r_key)β bracket access withr_key, the classic πΈsize_type size () constβ how many you gotvoid swap (lu_map< Key, Mapped, Eq_Fn, _Alloc, Update_Policy > &)β swap with another lu_map of the exact same shape
π¦ Public Attributes π¦
no_throw_indicator m_no_throw_copies_indicatorβ the public indicator member for no-throw copiesstore_extra m_store_extra_indicatorβ the publicstore_extramember
π Protected Member Functions π
template<typename It > void copy_from_range (It, It)β protected, copies in from an iterator range, It to It π§
β Friends β
class const_iterator_β friend π«Άclass iterator_β friend π«Ά
π 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." β that's the whole vibe, literally the description. it's giving mysterious but charming β¨
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. not a human, not me, a robot did this π€
ok that's the whole thing bestie, no details skipped, we ate and left no crumbs π
this has been the libstdc++ 3cxx manual page for __gnu_pbds::detail::lu_map< Key, Mapped, Eq_Fn, _Alloc, Update_Policy > β mwah, go build something iconic π
β¨
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms