Templa 0.0.1-alpha
C++ Metaprogramming Utilities
Loading...
Searching...
No Matches
templa::concepts::AllocatorAware Concept Reference

Concept checking if a type has a get_allocator() method returning allocator_type. More...

#include <concepts.hpp>

Concept definition

template<class T>
concept templa::concepts::AllocatorAware = requires(T a) {
{ a.get_allocator() } -> std::same_as<typename T::allocator_type>;
}
Concept checking if a type has a get_allocator() method returning allocator_type.
Definition concepts.hpp:191

Detailed Description

Concept checking if a type has a get_allocator() method returning allocator_type.

Template Parameters
TType to check.