operator template
std::compare_three_way::operator()
- Header
<compare>also in<functional>- Scope
std::compare_three_way- cppreference
- std::compare_three_way nearest page
Synopsis
template<class T, class U>
requires three_way_comparable_with<T, U>
constexpr auto operator(
)(T&& t, U&& u) const noexcept(noexcept(static_cast<T &&>(t) <=> static_cast<U &&>(u)));