__GNU_PBDS::CONTAINER_TRAITS(3cxx)

πŸ’– NAME πŸ’–

__gnu_pbds::container_traits< Cntnr > β€” Container traits. bestie, this page lives in the 3cxx manual, and it's genuinely giving β€œtrait struct with main character energy” ✨


✨ SYNOPSIS ✨

#include <tag_and_trait.hpp>

It inherits __gnu_pbds::container_traits_base< Cntnr::container_category >.

πŸŽ€ Public Types πŸŽ€

  • enum { order_preserving, erase_can_throw, split_join_can_throw, reverse_iteration } β€” the enum crew; each enumerator gets its own explanation down below πŸ’…
  • typedef container_traits_base< container_category > base_type β€” yup, base_type is literally that typedef, no cap.
  • typedef Cntnr::container_category container_category β€” container_category comes straight from Cntnr::container_category.
  • typedef Cntnr container_type β€” container_type is just Cntnr, iconic.
  • typedef base_type::invalidation_guarantee invalidation_guarantee β€” invalidation_guarantee is pulled from base_type::invalidation_guarantee.

πŸ¦‹ Detailed Description πŸ¦‹

template<typename Cntnr>
struct __gnu_pbds::container_traits< Cntnr >

Container traits. That's the whole vibe of this struct, and the description is literally β€œContainer traits.” 🫢


🌸 Member Enumeration Documentation 🌸

template<typename Cntnr > anonymous enum β€” yes bestie, it's an anonymous enum, and here's the full roster:

Enumerator

  • order_preserving β€” True only if Cntnr objects guarantee storing keys by order.
  • erase_can_throw β€” True only if erasing a key can throw.
  • split_join_can_throw β€” True only if split or join operations can throw.
  • reverse_iteration β€” True only reverse iterators are supported.

πŸŽ€ Author πŸŽ€

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


~ cute sign-off ~ source/version: libstdc++ + the 3cxx manual name, generated automatically by Doxygen from the source code. Date? Not printed on this page, so I'm not inventing one, bestie πŸ’–