logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

__gnu_pbds::trie.3cxx

Author

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

                                                    libstd__gnu_pbds::trie<Key,...,Node_Update,_Alloc>(3cxx)

Constructor & Destructor Documentation

template<typenameKey,typenameMapped,typename_ATraits=typenamedetail::default_trie_access_traits<Key>::type,typenameTag=pat_trie_tag,template<typenameNode_CItr,typenameNode_Itr,typename_ATraits_,typename_Alloc_>classNode_Update=null_node_update,typename_Alloc=std::allocator<char>>__gnu_pbds::trie<Key,Mapped,_ATraits,Tag,Node_Update,_Alloc>::trie(constaccess_traits&t)[inline]
       Constructor taking some policy objects. r_access_traits will be copied by the _ATraits object of the
       container object.

   template<typenameKey,typenameMapped,typename_ATraits=typenamedetail::default_trie_access_traits<Key>::type,typenameTag=pat_trie_tag,template<typenameNode_CItr,typenameNode_Itr,typename_ATraits_,typename_Alloc_>classNode_Update=null_node_update,typename_Alloc=std::allocator<char>>template<typenameIt>__gnu_pbds::trie<Key,Mapped,_ATraits,Tag,Node_Update,_Alloc>::trie(Itfirst,Itlast)[inline]
       Constructor taking __iterators to a range of value_types. The value_types between first_it and last_it
       will be inserted into the container object.

   template<typenameKey,typenameMapped,typename_ATraits=typenamedetail::default_trie_access_traits<Key>::type,typenameTag=pat_trie_tag,template<typenameNode_CItr,typenameNode_Itr,typename_ATraits_,typename_Alloc_>classNode_Update=null_node_update,typename_Alloc=std::allocator<char>>template<typenameIt>__gnu_pbds::trie<Key,Mapped,_ATraits,Tag,Node_Update,_Alloc>::trie(Itfirst,Itlast,constaccess_traits&t)[inline]
       Constructor taking __iterators to a range of value_types and some policy objects. The value_types between
       first_it and last_it will be inserted into the container object.

Detailed Description

template<typenameKey,typenameMapped,typename_ATraits=typenamedetail::default_trie_access_traits<Key>::type,typenameTag=pat_trie_tag,template<typenameNode_CItr,typenameNode_Itr,typename_ATraits_,typename_Alloc_>classNode_Update=null_node_update,typename_Alloc=std::allocator<char>>
       class __gnu_pbds::trie< Key, Mapped, _ATraits, Tag, Node_Update, _Alloc >"A trie-based container.

       TemplateParametersKey Key type.
           Mapped Map type.
           _ATraits Element access traits.
           Tag Instantiating data structure type, see container_tag.
           Node_Update Updates trie internal-nodes, restores invariants when invalidated. XXX See design::tree-
           based-containersnode invariants.
           _Alloc Allocator type.

       Base tag choice is pat_trie_tag.

       Base is basic_branch.

Member Typedef Documentation

template<typenameKey,typenameMapped,typename_ATraits=typenamedetail::default_trie_access_traits<Key>::type,typenameTag=pat_trie_tag,template<typenameNode_CItr,typenameNode_Itr,typename_ATraits_,typename_Alloc_>classNode_Update=null_node_update,typename_Alloc=std::allocator<char>>typedef_ATraits__gnu_pbds::trie<Key,Mapped,_ATraits,Tag,Node_Update,_Alloc>::access_traits
       Element access traits type.

Name

       __gnu_pbds::trie< Key, Mapped, _ATraits, Tag, Node_Update, _Alloc >

Synopsis

       #include <assoc_container.hpp>

       Inherits __gnu_pbds::basic_branch<Key,Mapped,Tag,Node_Update,Policy_Tl,_Alloc>.

   PublicTypes
       typedef _ATraits access_traits
           Element access traits type.
       typedef Node_Update node_updatePublicMemberFunctionstrie (const access_traits &t)
           Constructor taking some policy objects. r_access_traits will be copied by the _ATraits object of the
           container object.
       trie (const trie &other)
       template<typename It > trie (It first, It last)
           Constructor taking __iterators to a range of value_types. The value_types between first_it and
           last_it will be inserted into the container object.
       template<typename It > trie (It first, It last, const access_traits &t)
           Constructor taking __iterators to a range of value_types and some policy objects. The value_types
           between first_it and last_it will be inserted into the container object.
       trie & operator= (const trie &other)
       void swap (trie &other)

See Also