concept
std::three_way_comparable
- Header
<compare>- Draft
- [compare.syn]
- Scope
std- cppreference
- std::three_way_comparable
Synopsis
template<class T, class Cat = partial_ordering>
concept three_way_comparable = weakly-equality-comparable-with<T, T> && partially-ordered-with<T, T> &&
requires(const remove-ref-t<T>& a, const remove-ref-t<T>& b) {
{ a <=> b } -> compares-as<Cat>;
};