std::Regular
Defined in header <concepts> | ||
---|---|---|
template <class T> concept Regular = std::Semiregular<T> && std::EqualityComparable<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 ==
.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/concepts/Regular