Variable parrot::detail::natural_order_v#
Defined in File parrot.hpp
Variable Documentation#
-
template<typename Comparator, typename Value>
auto parrot::detail::natural_order_v =[] {using comp = std::remove_cvref_t<Comparator>;if constexpr (std::is_same_v<comp,parrot::lt> ||std::is_same_v<comp, cuda::std::less<Value>>) {returnorder::ascending;} else if constexpr (std::is_same_v<comp,parrot::gt> ||std::is_same_v<comp, cuda::std::greater<Value>>) {returnorder::descending;} else {returnorder::unknown;}}()#