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

Concept to check if a container supports erasing of elements. More...

#include <concepts.hpp>

Concept definition

template<class E, class T>
constexpr bool is_basic_string_v
Variable template shortcut for is_basic_string.
Definition concepts.hpp:216
Concept checking if a type has a get_allocator() method returning allocator_type.
Definition concepts.hpp:191
Concept checking if an object can be destroyed via an allocator.
Definition concepts.hpp:180
Concept checking if an object can be destroyed via std::destroy_at.
Definition concepts.hpp:166
Concept to check if a container supports erasing of elements.
Definition concepts.hpp:230

Detailed Description

Concept to check if a container supports erasing of elements.

This concept checks if the container either:

  • is a basic_string and DefaultErasable for its elements, or
  • is AllocatorAware and supports AllocatorErasable, or
  • is not AllocatorAware and supports DefaultErasable.
Template Parameters
EElement type.
TContainer type.