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

std::_Deque_base< _Tp, _Alloc >

Author

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

                                                    libstdc++              std::_Deque_base<_Tp,_Alloc>(3cxx)

Detailed Description

template<typename_Tp,typename_Alloc>
       class std::_Deque_base< _Tp, _Alloc >"Deque base class. This class provides the unified face for deque's
       allocation. This class's constructor and destructor allocate and deallocate (but do not initialize)
       storage. This makes exception safety easier.

       Nothing in this class ever constructs or destroys an actual Tp element. (Deque handles that itself.)
       Only/All memory management is performed here.

Member Function Documentation

template<typename_Tp,typename_Alloc>voidstd::_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t__num_elements)[protected]
       Layout storage.

       Parameters__num_elements The count of T's for which to allocate space at first.

       Returns
           Nothing.

       The initial underlying memory layout is a bit complicated...

       References std::max().

Name

       std::_Deque_base< _Tp, _Alloc >

Synopsis

       #include <deque>

       Inherited by std::deque<_StateSeqT> [protected], and std::deque<_Tp,_Alloc> [protected].

   ProtectedTypes
       enum { _S_initial_map_size }
       typedef__gnu_cxx::__alloc_traits< _Tp_alloc_type > _Alloc_traitstypedef__gnu_cxx::__alloc_traits< _Map_alloc_type > _Map_alloc_traitstypedef _Alloc_traits::template rebind< _Ptr >::other _Map_alloc_typetypedef iterator::_Map_pointer _Map_pointertypedef _Alloc_traits::pointer _Ptrtypedef _Alloc_traits::const_pointer _Ptr_consttypedef__gnu_cxx::__alloc_traits< _Alloc >::template rebind< _Tp >::other _Tp_alloc_typetypedef _Alloc allocator_typetypedef_Deque_iterator< _Tp, const _Tp &, _Ptr_const > const_iteratortypedef_Deque_iterator< _Tp, _Tp &, _Ptr > iteratorProtectedMemberFunctions_Deque_base (_Deque_base &&__x)
       _Deque_base (_Deque_base &&__x, const allocator_type &__a)
       _Deque_base (_Deque_base &&__x, const allocator_type &__a, size_t __n)
       _Deque_base (const allocator_type &__a)
       _Deque_base (const allocator_type &__a, size_t __num_elements)
       _Deque_base (size_t __num_elements)
       _Map_pointer _M_allocate_map (size_t __n)
       _Ptr _M_allocate_node ()
       void_M_create_nodes (_Map_pointer __nstart, _Map_pointer __nfinish)
       void_M_deallocate_map (_Map_pointer __p, size_t __n) noexcept
       void_M_deallocate_node (_Ptr __p) noexcept
       void_M_destroy_nodes (_Map_pointer __nstart, _Map_pointer __nfinish) noexcept
       _Map_alloc_type _M_get_map_allocator () const noexcept
       const _Tp_alloc_type & _M_get_Tp_allocator () const noexcept
       _Tp_alloc_type & _M_get_Tp_allocator () noexcept
       void_M_initialize_map (size_t)
           Layout storage.
       allocator_type get_allocator () const noexcept

   ProtectedAttributes
       _Deque_impl _M_impl

See Also