STD::__DETAIL::_INSERT_BASE(3cxx)
β¨ NAME β¨
bestie meet std::__detail::_Insert_base< _Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits > β yes that's a whole mouthful, yes it's iconic, and yes we're gonna get through it together π
πΈ SYNOPSIS πΈ
okay so first things first, you gotta pull her in:
#include <hashtable_policy.h>
Inherited by std::__detail::_Insert< _Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, false >, and std::__detail::_Insert< _Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true >.
π«Ά Public Member Functions
template<typename _InputIterator > void insert (_InputIterator __first, _InputIterator __last)β drops in a whole range, from__firstup to (but not including, iykyk)__lastπ__ireturn_type insert (const value_type &__v)β the classic single-value insert, she's giving main character energy β¨iterator insert (const_iterator __hint, const value_type &__v)β same vibe, but you're handing her a__hintabout where it might go πvoid insert (initializer_list< value_type > __l)β feed her a__linitializer_list, no notes π
π Protected Types
using __hashtable = _Hashtable< _Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits >using __hashtable_base = _Hashtable_base< _Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits >using __ireturn_type = typename __hashtable_base::__ireturn_typeusing __node_alloc_type = __alloc_rebind< _Alloc, __node_type >using __node_gen_type = _AllocNode< __node_alloc_type >using __node_type = _Hash_node< _Value, _Traits::__hash_cached::value >using __unique_keys = typename __hashtable_base::__unique_keysusing const_iterator = typename __hashtable_base::const_iteratorusing iterator = typename __hashtable_base::iteratorusing size_type = typename __hashtable_base::size_typeusing value_type = typename __hashtable_base::value_type
literally a whole little type family, and they all eat π
π Protected Member Functions
__hashtable & _M_conjure_hashtable ()β conjures the hashtable, as one does π§template<typename _InputIterator , typename _NodeGetter > void _M_insert_range (_InputIterator __first, _InputIterator __last, const _NodeGetter &, false_type)β thefalse_typeflavour of the range insert π¦template<typename _InputIterator , typename _NodeGetter > void _M_insert_range (_InputIterator __first, _InputIterator __last, const _NodeGetter &, true_type)β and thetrue_typeflavour, her sister π«
π Detailed Description
template<typename _Key, typename _Value, typename _Alloc, typename
_ExtractKey, typename _Equal, typename _H1, typename _H2, typename
_Hash, typename _RehashPolicy, typename _Traits>
struct std::__detail::_Insert_base< _Key, _Value, _Alloc, _ExtractKey,
_Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits >
Primary class template _Insert_base.
she Defines insert member functions appropriate to all _Hashtables. periodt π
likeβ¦ that's the whole job, and she does it flawlessly π₯
π Author
Generated automatically by Doxygen for libstdc++ from the source code.</purole>
and that's the tea, bestie π«Ά this lil' page came to you courtesy of libstdc++, written up by Doxygen straight from the source code, and it lives in the 3cxx manual β no cap, that's genuinely all of it πβ¨π
π¦ where this page comes from
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms