__GNU_PBDS::DETAIL::LU_MAP(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 7 versions
, in arch rolling, fedora 44

πŸ’– 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_type
  • comp_hash β€” typedef std::pair< size_type, size_type > comp_hash
  • const_iterator β€” typedef const_iterator_ const_iterator
  • const_pointer β€” typedef traits_base::const_pointer const_pointer
  • const_reference β€” typedef traits_base::const_reference const_reference
  • difference_type β€” typedef _Alloc::difference_type difference_type
  • eq_fn β€” typedef Eq_Fn eq_fn
  • iterator β€” typedef iterator_ iterator
  • key_const_pointer β€” typedef traits_base::key_const_pointer key_const_pointer
  • key_const_reference β€” typedef traits_base::key_const_reference key_const_reference
  • key_pointer β€” typedef traits_base::key_pointer key_pointer
  • key_reference β€” typedef traits_base::key_reference key_reference
  • key_type β€” typedef traits_base::key_type key_type
  • mapped_const_pointer β€” typedef traits_base::mapped_const_pointer mapped_const_pointer
  • mapped_const_reference β€” typedef traits_base::mapped_const_reference mapped_const_reference
  • mapped_pointer β€” typedef traits_base::mapped_pointer mapped_pointer
  • mapped_reference β€” typedef traits_base::mapped_reference mapped_reference
  • mapped_type β€” typedef traits_base::mapped_type mapped_type
  • no_throw_indicator β€” typedef __nothrowcopy::indicator no_throw_indicator
  • point_const_iterator β€” typedef point_const_iterator_ point_const_iterator
  • point_iterator β€” typedef point_iterator_ point_iterator
  • pointer β€” typedef traits_base::pointer pointer
  • reference β€” typedef traits_base::reference reference
  • size_type β€” typedef _Alloc::size_type size_type
  • store_extra β€” typedef integral_constant< int, Store_Hash > store_extra
  • stored_data_type β€” typedef stored_data< value_type, size_type, Store_Hash > stored_data_type
  • update_metadata β€” typedef Update_Policy::metadata_type update_metadata
  • update_policy β€” typedef Update_Policy update_policy
  • value_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 of end ().
  • bool erase (key_const_reference) β€” removes by key, returns a bool.
  • 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 another lu_map, slay.

πŸŽ€ Public Attributes

  • no_throw_indicator m_no_throw_copies_indicator
  • store_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 a libstdc++ 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