std::allocator::allocator(3)
πΈ NAME πΈ
std::allocator::allocator β the name line is literally std::allocator::allocator - std::allocator::allocator, so yeah, itβs giving βsame thing twice, but make it official.β This is the std::allocator::allocator(3) page from the C++ Standard Libary manual, bestie. π
β¨ Synopsis β¨
okay so the synopsis is a whole overload family reunion, and every version tag matters. hereβs the exact block, no edits, no vibes lost:
allocator() throw(); (until C++11)
allocator() noexcept; (since C++11)
(until C++20)
constexpr allocator() noexcept; (since C++20)
allocator( const allocator& other (until
C++11)
) throw();
allocator( const allocator& other (since
C++11)
) noexcept; (until
C++20)
constexpr allocator( const (since
C++20)
allocator& other ) noexcept; (1)
template< class U >
allocator( const allocator<U>& (2)
(until C++11)
other ) throw();
template< class U >
(since C++11)
allocator( const allocator<U>& (3)
(until C++20)
other ) noexcept;
template< class U >
constexpr allocator( const
(since C++20)
allocator<U>& other ) noexcept;
Thatβs the whole overload lineup. The (until C++11), (since C++11), (until C++20), and (since C++20) tags are doing the heavy lifting, so do not skip them. π₯
They construct the default allocator. Since the default allocator is stateless, the constructors have no visible effect β like, none, zero, invisible, ghost behavior. π» No cap.
π Parameters π
otherβ another allocator to construct with. thatβs literally the whole parameter list, and she ate. π«Ά
okay bye bestie β this page came from http://cppreference.com, dated 2024.06.10, and itβs the std::allocator::allocator(3) manual page. mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms