std::Regular (3) - Linux Manuals

std::Regular: std::Regular

NAME

std::Regular - std::Regular

Synopsis


Defined in header <concepts>
template <class T> (since C++20)
concept Regular = std::Semiregular<T> && std::EqualityComparable<T>;


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 ==.