std::vector<T,Allocator>::get_allocator

Returns the allocator associated with the container.

# Declarations

allocator_type get_allocator() const;

(noexcept since C++11)(constexpr since C++20)

# Return value

The associated allocator.