__gnu_pbds::sa...e_access_traits(3cxx)

✨ NAME ✨

__gnu_pbds::sample_trie_access_traits β€” a sample trie element access traits πŸ’– (yes bestie, it's literally a sample, like the free sample at the mall, except it's C++ template policy stuff and honestly way more iconic)

This page lives in the 3cxx manual β€” like, the libstdc++ corner of the man-verse πŸ¦‹


🌸 SYNOPSIS 🌸

#include <sample_trie_access_traits.hpp>

πŸŽ€ Public Types πŸŽ€

  • enum { max_size } β€” a lil anonymous enum holding max_size, no notes on it, it just is ✨
  • typedef std::string::const_iterator const_iterator β€” the const iterator type, slaying under an alias
  • typedef char e_type β€” Element type.
  • typedef rebind_traits< _Alloc, key_type >::const_reference key_const_reference β€” a const reference to a key, rebound through _Alloc, periodt
  • typedef std::string key_type β€” your key is a std::string, no cap
  • typedef std::size_t size_type β€” the size type, standard-issue std::size_t

πŸ¦‹ Static Public Member Functions πŸ¦‹

  • static const_iterator begin (key_const_reference) β€” Returns a const_iterator to the first element of r_key.
  • static size_type e_pos (e_type) β€” Maps an element to a position.
  • static const_iterator end (key_const_reference) β€” Returns a const_iterator to the after-last element of r_key.

πŸ’œ Detailed Description πŸ’œ

A sample trie element access traits. That's the whole vibe. It's a trait class, it's a sample, it gives trie energy 🌈


🧚 Member Typedef Documentation 🧚

⭐ typedef char __gnu_pbds::sample_trie_access_traits::e_type

Element type. That's it, that's the typedef, and honestly? she ate πŸ’…


πŸ”₯ Member Function Documentation πŸ”₯

🌸 static const_iterator __gnu_pbds::sample_trie_access_traits::begin (key_const_reference) [inline], [static]

Returns a const_iterator to the first element of r_key. Classic begin, doing begin things 🫢

πŸ’– static size_type __gnu_pbds::sample_trie_access_traits::e_pos (e_type) [inline], [static]

Maps an element to a position. Where does it map it? To a position. Slay πŸŽ€

πŸ¦‹ static const_iterator __gnu_pbds::sample_trie_access_traits::end (key_const_reference) [inline], [static]

Returns a const_iterator to the after-last element of r_key. The after-last one, not the last one β€” important distinction bestie, don't come for me 😭

Heads up: begin, e_pos and end are all marked [inline] and [static] in the docs β€” keep that in mind, iykyk ✨

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. So no human wrote this, a robot did, and the robot deserves flowers fr fr πŸŒΈπŸ€–


okay that's the whole page bestie, go forth and use your sample trie access traits πŸ’…βœ¨ β€” and just so we're official: this was libstdc++'s __gnu_pbds::sample_trie_access_traits page from the 3cxx manual, mwah πŸ«ΆπŸ’–πŸŽ€