Namespaces
Variants
Views
Actions

std::semiregular

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

The semiregular concept specifies that a type is both copyable and default constructible. It is satisfied by types that behave similarly to built-in types like int, except that they need not support comparison with ==.