std::basic_string<CharT,Traits,Allocator>::get_allocator
From cppreference.com
< cpp | string | basic string
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)
std::basic_string
(C++23)
basic_string::get_allocator
(DR*)
(DR*)
(C++23)
(DR*)
(C++23)
(C++23)
(C++20)
(C++20)
(C++23)
(C++20)(C++20)
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
(C++11)(C++11)(C++11)
(C++11)(C++11)
(C++14)
(C++11)
Deduction guides (C++17)
allocator_type get_allocator() const;
(noexcept since C++20) (constexpr since C++20)
Returns the allocator associated with the string.
Contents
[edit] Parameters
(none)
[edit] Return value
The associated allocator.
[edit] Complexity
Constant.