std::allocator<T>::allocator
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Memory management library
(exposition only*)
(C++11)
(C++23)
(C++11)
(C++17)
(C++11)
(C++11)
(C++20)
(C++20)
(C++17)
(C++11)
(C++17)
(C++20)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
Uninitialized storage (until C++20)
(until C++20*)
(until C++20*)
(until C++20*)
Garbage collector support (until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)
(C++11)
(C++17)
(C++20)
(C++17)
(C++11)
(C++11)
(C++11)
(until C++17*)
(C++11)
(C++17)
(C++26)
(C++26)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++11)
(C++20)
(C++11)
(C++11)
(C++20)
(C++26)
std::allocator
Member functions
allocator::allocator
(until C++20)
(C++23)
(until C++20)
(until C++20)
(until C++20)
Non-member functions
(until C++20)
(1)
allocator() throw();
(until C++11)
allocator() noexcept;
(since C++11) (until C++20)
constexpr allocator() noexcept;
(since C++20)
(2)
allocator( const allocator& other ) throw();
(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 ) throw();
(until C++11)
allocator( const allocator<U>& other ) throw();
template< class U >
allocator( const allocator<U>& other ) noexcept;
(since C++11) allocator( const allocator<U>& other ) noexcept;
(until C++20)
template< class U >
constexpr allocator( const allocator<U>& other ) noexcept;
(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.
[edit] Parameters
other
-
another allocator to construct with