Namespaces
Variants
Views
Actions

std::regular

From cppreference.com
< cpp‎ | concepts
Defined in header <concepts>
template <class T>
concept regular = std::semiregular<T> && std::equality_comparable<T>;
(since C++20)

The regular concept specifies that a type is regular, that is, it is copyable, default constructible, and equality comparable. It is satisfied by types that behave similarly to built-in types like int, and that are comparable with ==.