__GNU_PBDS::DETAIL::SYNTH_ACCESS_TRAITS(3cxx)
π NAME
okay so welcome to __gnu_pbds::detail::synth_access_traits< Type_Traits, Set, _ATraits > β it's the Synthetic element access traits, and yes bestie, this is one of those template-y little guys that does a lot of quiet heavy lifting. This page is from the 3cxx manual, part of libstdc++. π«Ά
β¨ SYNOPSIS
first things first, pull it in with:
#include <synth_access_traits.hpp>
and heads up: this struct inherits _ATraits β it's literally built on top of it, no cap. π¦
π Public Types
base_typeβtypedef _ATraits base_typeβ the parent traits type, renamed so everything reads cute.const_iteratorβtypedef base_type::const_iterator const_iteratorβ the const iterator, straight borrowed frombase_type.const_referenceβtypedef type_traits::const_reference const_referenceβ const reference type, courtesy oftype_traits.key_const_referenceβtypedef type_traits::key_const_reference key_const_referenceβ const reference to a key, also fromtype_traits.type_traitsβtypedef Type_Traits type_traitsβ theType_Traitstemplate parameter, wearing a lowercase name. π
πΈ Public Member Functions
synth_access_traits (const base_type &)β constructor that takes aconst base_type &. that's it, that's the whole vibe.bool cmp_keys (key_const_reference, key_const_reference) constβ compares two keys, returnsbool. π₯bool cmp_prefixes (const_iterator, const_iterator, const_iterator, const_iterator, bool compare_after=false) constβ compares a pair of prefix ranges, with an optionalbool compare_afterthat defaults tofalse. note that default, bestie, it'sfalsehere. πbool equal_keys (key_const_reference, key_const_reference) constβ are the two keys equal? returnsbool. simple, iconic.bool equal_prefixes (const_iterator, const_iterator, const_iterator, const_iterator, bool compare_after=true) constβ checks whether prefixes are equal, withbool compare_afterdefaulting totrue. β οΈ highkey different default fromcmp_prefixesβtruehere,falsethere. do not mix them up, i'm begging.
β Static Public Member Functions
static key_const_reference extract_key (const_reference)β static, so you don't need an instance to pull the key out of a reference. slay. β¨
π Detailed Description
the actual declaration, in all its glory:
template<typename Type_Traits, bool Set, typename _ATraits>
struct __gnu_pbds::detail::synth_access_traits< Type_Traits, Set, _ATraits >
Synthetic element access traits. that's the whole description. it's giving "synthetic", it's giving "element access traits", it's giving exactly what it says on the tin. π
template parameters to keep straight:Type_Traits,bool Set, and_ATraits. three of them. don't lose one. π
π Author
Generated automatically by Doxygen for libstdc++ from the source code. so nobody hand-wrote this one, the robot did it. π
that's the whole page, bestie β synth_access_traits< Type_Traits, Set, _ATraits > from libstdc++, 3cxx manual, straight out of Doxygen's source-code-generated pipeline. go forth and synth your access traits π
πΈπ
π¦ 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