is_character

The is_character detects the typical “char” types in C++ (char, signed char, char8_t, char16_t, and char32_t).

template<typename _Type>
class is_character : public std::integral_constant<bool, ::std::is_same_v<_Type, char> || ::std::is_same_v<_Type, wchar_t> || ::std::is_same_v<_Type, unsigned char> || ::std::is_same_v<_Type, signed char> || ::std::is_same_v<_Type, char16_t> || ::std::is_same_v<_Type, char32_t>>

Checks if the given type is one of the plain character types.

template<typename _Type>
constexpr bool ztd::is_character_v = is_character<_Type>::value

An _v alias for ztd::is_character.