Add Traits::HasOperatorBool
This commit is contained in:
parent
4ca32e14dc
commit
cad2977e4e
|
@ -131,6 +131,9 @@ CPP_UTILITIES_TRAITS_DEFINE_TYPE_CHECK(IsReservable, std::declval<T &>().reserve
|
|||
/// \brief Evaluates to Bool<true> if the specified type can has a resize() method; otherwise evaluates to Bool<false>.
|
||||
CPP_UTILITIES_TRAITS_DEFINE_TYPE_CHECK(IsResizable, std::declval<T &>().resize(0u));
|
||||
|
||||
/// \brief Evaluates to Bool<true> if the specified type has operator bool(); otherwise evaluates to Bool<false>.
|
||||
CPP_UTILITIES_TRAITS_DEFINE_TYPE_CHECK(HasOperatorBool, std::declval<T &>() ? true : false);
|
||||
|
||||
/// \brief Evaluates to Bool<true> if the specified type is iteratable (can be used in for-each loop); otherwise evaluates to Bool<false>.
|
||||
CPP_UTILITIES_TRAITS_DEFINE_TYPE_CHECK(IsIteratable,
|
||||
// begin/end and operator !=
|
||||
|
|
Loading…
Reference in New Issue