W3cubDocs

/C++

std::Semiregular

Defined in header <concepts>
template <class T>
concept Semiregular = std::Copyable<T> && std::DefaultConstructible<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 ==.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/concepts/Semiregular