__GNU_PBDS::LIST_UPDATE(3cxx)

πŸ’… NAME πŸ’…

okay so bestie, this is the 3cxx manual page for __gnu_pbds::list_update< Key, Mapped, Eq_Fn, Update_Policy, _Alloc > β€” yes, the whole template gang is in the name. It’s giving β€œassociative container but make it list-update,” and we’re gonna go through every single detail, no cap. ✨


🌸 SYNOPSIS 🌸

#include <assoc_container.hpp>

It inherits detail::container_base_dispatch::type. Slay. 🫢

πŸŽ€ Public Types πŸŽ€

  • typedef list_update_tag container_category
  • typedef Eq_Fn eq_fn
  • typedef Update_Policy update_policy

🫢 Public Member Functions 🫢

  • list_update (const list_update &other) β€” the signature is right there; this manpage doesn’t add extra lore.
  • template<typename It > list_update (It first, It last) β€” constructor taking __iterators to a range of value_types. The value_types between first_it and last_it will be inserted into the container object. πŸ¦‹
  • list_update & operator= (const list_update &other) β€” same vibe: signature only, bestie.
  • void swap (list_update &other) β€” signature only, no extra description listed.

πŸ”₯ Detailed Description πŸ”₯

The class is literally this:

template<typename Key, typename Mapped, class Eq_Fn = typename
    detail::default_eq_fn<Key>::type, class Update_Policy =
    detail::default_update_policy::type, class _Alloc =
    std::allocator<char>>
    class __gnu_pbds::list_update< Key, Mapped, Eq_Fn, Update_Policy, _Alloc
    >

And it’s described as β€œA list-update based associative container.” Periodt. πŸ’…

🧚 Template Parameters 🧚

  • Key β€” Key type.
  • Mapped β€” Map type.
  • Eq_Fn β€” Equal functor.
  • Update_Policy β€” Update policy, determines when an element will be moved to the front of the list.
  • _Alloc β€” Allocator type.

Base is detail::lu_map. iykyk. 🌈


πŸ‘‘ Constructor & Destructor Documentation πŸ‘‘

template<typename Key , typename Mapped , class Eq_Fn  = typename detail::default_eq_fn<Key>::type, class Update_Policy  = detail::default_update_policy::type, class _Alloc  = std::allocator<char>> template<typename It > __gnu_pbds::list_update< Key, Mapped, Eq_Fn, Update_Policy, _Alloc >::list_update (It first, It last) [inline]

Constructor taking __iterators to a range of value_types. The value_types between first_it and last_it will be inserted into the container object. That’s the whole note, bestie. πŸŽ€


πŸ“œ Author πŸ“œ

Generated automatically by Doxygen for libstdc++ from the source code.

ngl, Doxygen did the typing and we’re just here for the vibes. πŸ’–


okay that’s the whole page 🫢 β€” source/version is libstdc++ and the manual is 3cxx; the footer doesn’t print a date, so we’re not gonna invent one. Periodt. πŸŽ€βœ¨