Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::compare_three_way Struct Reference

Public Types

using is_transparent = void
 

Public Member Functions

template<typename T , typename U >
constexpr auto operator() (T &&t, U &&u) const -> decltype((T &&) t<=>(U &&) u)
 

Member Function Documentation

◆ operator()()

template<typename T , typename U >
constexpr auto ranges::compare_three_way::operator() ( T &&  t,
U &&  u 
) const -> decltype((T &&) t <=> (U &&) u)
constexpr
Precondition
requires three_way_comparable_with<T, U>