NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
phmap::compare_internal 命名空间参考

struct  Fail
 
struct  OnlyLiteralZero
 
struct  partial_ordering_base
 
struct  strong_equality_base
 
struct  strong_ordering_base
 
struct  weak_equality_base
 
struct  weak_ordering_base
 

类型定义

using value_type = int8_t
 

枚举

enum class  eq : value_type { equal = 0 , equivalent = equal , nonequal = 1 , nonequivalent = nonequal }
 
enum class  ord : value_type { less = -1 , greater = 1 }
 
enum class  ncmp : value_type { unordered = -127 }
 

函数

template<typename BoolType , phmap::enable_if_t< std::is_same< bool, BoolType >::value, int > = 0>
constexpr bool compare_result_as_less_than (const BoolType r)
 
constexpr bool compare_result_as_less_than (const phmap::weak_ordering r)
 
template<typename Compare , typename K , typename LK >
constexpr bool do_less_than_comparison (const Compare &compare, const K &x, const LK &y)
 
template<typename Int , phmap::enable_if_t< std::is_same< int, Int >::value, int > = 0>
constexpr phmap::weak_ordering compare_result_as_ordering (const Int c)
 
constexpr phmap::weak_ordering compare_result_as_ordering (const phmap::weak_ordering c)
 
template<typename Compare , typename K , typename LK , phmap::enable_if_t<!std::is_same< bool, phmap::invoke_result_t< Compare, const K &, const LK & > >::value, int > = 0>
constexpr phmap::weak_ordering do_three_way_comparison (const Compare &compare, const K &x, const LK &y)
 

类型定义说明

◆ value_type

using phmap::compare_internal::value_type = typedef int8_t

枚举类型说明

◆ eq

枚举值
equal 
equivalent 
nonequal 
nonequivalent 

◆ ncmp

枚举值
unordered 

◆ ord

枚举值
less 
greater 

函数说明

◆ compare_result_as_less_than() [1/2]

template<typename BoolType , phmap::enable_if_t< std::is_same< bool, BoolType >::value, int > = 0>
constexpr bool phmap::compare_internal::compare_result_as_less_than ( const BoolType  r)
constexpr

◆ compare_result_as_less_than() [2/2]

constexpr bool phmap::compare_internal::compare_result_as_less_than ( const phmap::weak_ordering  r)
constexpr

◆ compare_result_as_ordering() [1/2]

template<typename Int , phmap::enable_if_t< std::is_same< int, Int >::value, int > = 0>
constexpr phmap::weak_ordering phmap::compare_internal::compare_result_as_ordering ( const Int  c)
constexpr

◆ compare_result_as_ordering() [2/2]

constexpr phmap::weak_ordering phmap::compare_internal::compare_result_as_ordering ( const phmap::weak_ordering  c)
constexpr

◆ do_less_than_comparison()

template<typename Compare , typename K , typename LK >
constexpr bool phmap::compare_internal::do_less_than_comparison ( const Compare &  compare,
const K &  x,
const LK &  y 
)
constexpr

◆ do_three_way_comparison()

template<typename Compare , typename K , typename LK , phmap::enable_if_t<!std::is_same< bool, phmap::invoke_result_t< Compare, const K &, const LK & > >::value, int > = 0>
constexpr phmap::weak_ordering phmap::compare_internal::do_three_way_comparison ( const Compare &  compare,
const K &  x,
const LK &  y 
)
constexpr