C++Spec 1.1.0
BDD testing for C++
Loading...
Searching...
No Matches
CppSpec::Util::is_cmp_integer Concept Reference

Checks whether T is an integer type that std::cmp_less and its kin accept: every integral type but bool and the character types (int8_t and uint8_t are in). More...

#include <util.hpp>

Concept definition

template<typename T>
concept is_cmp_integer = std::integral<std::remove_cv_t<T>> && !std::same_as<std::remove_cv_t<T>, bool> &&
!std::same_as<std::remove_cv_t<T>, char> && !is_wide_character<T>
Checks whether T is an integer type that std::cmp_less and its kin accept: every integral type but bo...
Definition util.hpp:224
Checks whether T is a character type that std::ostream does not print as a character: wchar_t,...
Definition util.hpp:162

Detailed Description

Checks whether T is an integer type that std::cmp_less and its kin accept: every integral type but bool and the character types (int8_t and uint8_t are in).

Template Parameters
Ta type to check