cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::traits::is_greater_than_comparable< T, U, typename > Struct Template Reference

检查类型T和U是否支持大于运算符(>)/Check if types T and U support the greater-than operator (>) More...

#include <type_traits.hpp>

Inheritance diagram for toolbox::traits::is_greater_than_comparable< T, U, typename >:

Detailed Description

template<typename T, typename U = T, typename = void>
struct toolbox::traits::is_greater_than_comparable< T, U, typename >

检查类型T和U是否支持大于运算符(>)/Check if types T and U support the greater-than operator (>)

Template Parameters
T第一个要比较的类型/First type to compare
U第二个要比较的类型,默认为T/Second type to compare, defaults to T
voidSFINAE参数/SFINAE parameter
double>::value); // true struct Bar {};
false
检查类型T和U是否支持大于运算符(>)/Check if types T and U support the greater-than operator (>)
Definition type_traits.hpp:879

The documentation for this struct was generated from the following file: