std::vector<T,Allocator>::
get_allocator
From cppreference.com
<
cpp
|
container
|
vector
C++
Language
Standard Library Headers
Freestanding and hosted implementations
Named requirements
Language support library
Concepts library
(C++20)
Diagnostics library
Utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Input/output library
Localizations library
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Filesystem library
(C++17)
Technical Specifications
Containers library
array
(C++11)
vector
deque
forward_list
(C++11)
list
set
multiset
map
multimap
unordered_set
(C++11)
unordered_multiset
(C++11)
unordered_map
(C++11)
unordered_multimap
(C++11)
stack
queue
priority_queue
span
(C++20)
std::vector
Member functions
vector::vector
vector::~vector
vector::operator=
vector::assign
vector::get_allocator
Element access
vector::at
vector::operator[]
vector::front
vector::back
vector::data
(C++11)
Iterators
vector::begin
vector::cbegin
(C++11)
vector::end
vector::cend
(C++11)
vector::rbegin
vector::crbegin
(C++11)
vector::rend
vector::crend
(C++11)
Capacity
vector::empty
vector::size
vector::max_size
vector::reserve
vector::capacity
vector::shrink_to_fit
(C++11)
Modifiers
vector::clear
vector::insert
vector::emplace
(C++11)
vector::erase
vector::push_back
vector::emplace_back
(C++11)
vector::pop_back
vector::resize
vector::swap
Deduction guides
(C++17)
allocator_type get_allocator
(
)
const
;
Returns the allocator associated with the container.
Parameters
(none)
Return value
The associated allocator.
Complexity
Constant.