std::allocator<T>::allocator (3) - Linux Manuals

std::allocator<T>::allocator: std::allocator<T>::allocator

NAME

std::allocator<T>::allocator - std::allocator<T>::allocator

Synopsis


allocator() throw(); (until C++11)
allocator() noexcept; (since C++11)
                                                                   (until C++20)
constexpr allocator() noexcept; (since C++20)
allocator( const allocator& other ) throw(); (until C++11)
allocator( const allocator& other ) noexcept; (since C++11)
                                                           (1) (until C++20)
constexpr allocator( const allocator& other ) noexcept; (since C++20)
template< class U > (2) (until C++11)
allocator( const allocator<U>& other ) throw();
template< class U > (3) (since C++11)
allocator( const allocator<U>& other ) noexcept; (until C++20)
template< class U > (since C++20)
constexpr allocator( const allocator<U>& other ) noexcept;


Constructs the default allocator. Since the default allocator is stateless, the constructors have no visible effect.

Parameters


other - another allocator to construct with