libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ get_allocator() [1/2]

template<typename _CharT, typename _Traits, typename _Alloc>
allocator_type std::basic_string< _CharT, _Traits, _Alloc >::get_allocator ( ) const
inlinenodiscardconstexprnoexcept

Return copy of allocator used to construct this string.

Definition at line 2931 of file basic_string.h.

2932 { return _M_get_allocator(); }
constexpr allocator_type & _M_get_allocator()

Referenced by std::basic_string< _CharT >::basic_string(), std::basic_string< _CharT >::~basic_string(), _M_mutate(), std::basic_string< _CharT >::assign(), std::basic_string< _CharT >::clear(), std::operator+(), std::operator+(), std::operator+(), std::operator+(), std::operator+(), reserve(), reserve(), and swap().

Here is the caller graph for this function: