std::allocator::allocator

From cppreference.com
< cpplrm; | memorylrm; | allocator
Dynamic memory management
Uninitialized storage
(C++17)
Garbage collection support
Miscellaneous
(C++20)
(C++11)
(C++11)
C Library
Low level memory management
std::allocator
Member functions
allocator::allocator
(until C++20)
(until C++20)
(until C++20)
Non-member functions
(1)
allocator();
(until C++11)
allocator() noexcept;
(since C++11)
(until C++20)
constexpr allocator() noexcept;
(since C++20)
(2)
allocator( const allocator& other );
(until C++11)
allocator( const allocator& other ) noexcept;
(since C++11)
(until C++20)
constexpr allocator( const allocator& other ) noexcept;
(since C++20)
(3)
template< class U >
allocator( const allocator<U>& other );
(until C++11)
template< class U >
allocator( const allocator<U>& other ) noexcept;
(since C++11)
(until C++20)
template< class U >
constexpr allocator( const allocator<U>& other ) noexcept;
(since C++20)

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

Parameters

other - another allocator to construct with