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::allocator< _Tp > - The standard allocator, as per C++03 [20.4.1].

Author

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

                                                    libstdc++                        std::allocator<_Tp>(3cxx)

Detailed Description

template<typename_Tp>
       class std::allocator< _Tp >"The standard allocator, as per C++03 [20.4.1].

       See https://gcc.gnu.org/onlinedocs/libstdc++/manual/memory.html#std.util.memory.allocator for further
       details.

       TemplateParameters_Tp Type of allocated object.

Name

       std::allocator< _Tp > - The standard allocator, as per C++03 [20.4.1].

Synopsis

       #include <memory>

       Inherits std::__new_allocator<_Tp>.

   PublicTypestypedef ptrdiff_t difference_typeusingis_always_equal = true_typeusingpropagate_on_container_move_assignment = true_typetypedef size_t size_typetypedef _Tp value_typePublicMemberFunctions
       constexpr allocator (const allocator &__a) noexcept
       template<typename_Tp1 > constexpr allocator (const allocator< _Tp1 > &) noexcept
       constexpr _Tp * allocate (size_t __n)
       _Tp * allocate (size_type __n, const void *=static_cast< const void * >(0))
       constexpr voiddeallocate (_Tp *__p, size_t __n)
       allocator & operator= (const allocator &)=defaultFriends
       constexpr bool operator== (const allocator &, const allocator &) noexcept

   RelatedSymbols
       (Note that these are not member symbols.)
       template<typename _T1 , typename _T2 > constexpr bool operator== (const allocator< _T1 > &, const
           allocator< _T2 > &) noexcept

See Also