__GNU_PBDS::TRIE_STRING_ACCESS_TRAITS(3cxx)
π __gnu_pbds::trie_string_access_traits π
okay so this is the 3cxx manual page, and the full name is literally:
__gnu_pbds::trie_string_access_traits< String, Min_E_Val, Max_E_Val, Reverse, _Alloc >
Itβs a struct template. Itβs giving very specific, very iconic. No cap. π
β¨ NAME β¨
__gnu_pbds::trie_string_access_traits< String, Min_E_Val, Max_E_Val, Reverse, _Alloc >
π SYNOPSIS π
#include <trie_policy.hpp>
π Public Types π
enum { reverse }β a little enum holdingreverse. Thatβs it. Gorgeous.enum { min_e_val, max_e_val, max_size }β the enum trio:min_e_val,max_e_val, andmax_size. Slay.typedef detail::__conditional_type< Reverse, typenameString::const_reverse_iterator, typenameString::const_iterator >::__type const_iteratorβ the element const iterator type. The docs literally sayElement const iterator type.Keep that energy.typedef std::iterator_traits< const_iterator >::value_type e_typeβ element type. Docs sayElement type.π«Άtypedef detail::rebind_traits< _Alloc, key_type >::const_reference key_const_referenceβ the key const-reference typedef. Itβs givingrebind_traits.typedef String key_typeβ boom,key_typeis yourString.typedef _Alloc::size_type size_typeβ andsize_typecomes from_Alloc.
πΈ Static Public Member Functions πΈ
static const_iterator begin (key_const_reference)β returns aconst_iteratorto the first element of thekey_const_referenceagumnet. (Thatagumnetspelling is from the original, bestie, not me π.)static size_type e_pos (e_type e)β maps an element to a position. Simple. Gorgeous.static const_iterator end (key_const_reference)β returns aconst_iteratorto the after-last element of thekey_const_referenceargument.
π¦ Detailed Description π¦
The template signature is:
template<typename String = std::string, typename String::value_type
Min_E_Val = detail::__numeric_traits<typename
String::value_type>::__min, typename String::value_type Max_E_Val =
detail::__numeric_traits<typename
String::value_type>::__max, bool Reverse = false, typename _Alloc =
std::allocator<char>>
struct __gnu_pbds::trie_string_access_traits< String, Min_E_Val,
Max_E_Val, Reverse, _Alloc >
And the description text, stray opening quote and all, is:
"Element access traits for string types.
Yes, that " is in the source. Weβre not fixing it. Facts are facts π
.
π± Template Parameters π±
Stringβ String type.Min_E_Valβ Minimal element value.Max_E_Valβ Maximum element value.Reverseβ Reverse iteration should be used. Default:false._Allocβ Allocator type.
π§ Member Typedef Documentation π§
All of these live under the exact template head we just showed, bestie.
π§΅ const_iterator
typedef detail::__conditional_type<Reverse,typenameString::const_reverse_iterator,typenameString::const_iterator>::__type
__gnu_pbds::trie_string_access_traits< String, Min_E_Val, Max_E_Val, Reverse, _Alloc >::const_iterator
The comment is: Element const iterator type.
π§΅ e_type
typedef std::iterator_traits<const_iterator>::value_type
__gnu_pbds::trie_string_access_traits< String, Min_E_Val, Max_E_Val, Reverse, _Alloc >::e_type
The comment is: Element type.
π Member Function Documentation π
These all have the same template head as above, and each one is marked [inline], [static] in the docs.
π
begin
static const_iterator __gnu_pbds::trie_string_access_traits< String, Min_E_Val, Max_E_Val, Reverse, _Alloc >::begin (key_const_reference) [inline], [static]
The docs say: Returns a const_iterator to the first element of key_const_reference agumnet. Typo preserved, bestie. π«Ά
π
e_pos
static size_type __gnu_pbds::trie_string_access_traits< String, Min_E_Val, Max_E_Val, Reverse, _Alloc >::e_pos (e_type e) [inline], [static]
The docs say: Maps an element to a position.
π
end
static const_iterator __gnu_pbds::trie_string_access_traits< String, Min_E_Val, Max_E_Val, Reverse, _Alloc >::end (key_const_reference) [inline], [static]
The docs say: Returns a const_iterator to the after-last element of key_const_reference argument.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
π cute sign-off: the source/version-and-date footer position on this page literally reads libst__gnu_pbds::tri...verse, _Alloc >(3cxx) β thatβs the footer string we got, bestie. No cap, itβs a little cursed, but we keep the facts. Mwah πβ¨
π¦ 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