table of contents
        
      
      
    
      other versions
    
    - Tumbleweed 2024.07.05-1.3
 - Leap-16.0
 - Leap-15.6
 
| std::basic_string::get_allocator(3) | C++ Standard Libary | std::basic_string::get_allocator(3) | 
NAME¶
std::basic_string::get_allocator - std::basic_string::get_allocator
Synopsis¶
 allocator_type get_allocator() const; (noexcept since C++20)
  
   (constexpr since C++20)
  
   Returns the allocator associated with the string.
Parameters¶
(none)
Return value¶
The associated allocator.
Complexity¶
Constant.
See also¶
 allocator the default allocator
  
   (class template)
  
   allocator_traits provides information about allocator types
  
   (C++11) (class template)
  
   uses_allocator checks if the specified type supports uses-allocator
    construction
  
   (C++11) (class template)
| 2024.06.10 | http://cppreference.com |