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

Checks whether T is a pointer to a character type other than char: signed char, unsigned char, or a wide character type. More...

#include <util.hpp>

Concept definition

template<typename T>
std::is_pointer_v<T> && (std::same_as<std::remove_const_t<std::remove_pointer_t<T>>, signed char> ||
std::same_as<std::remove_const_t<std::remove_pointer_t<T>>, unsigned char> ||
std::same_as<std::remove_const_t<std::remove_pointer_t<T>>, wchar_t> ||
std::same_as<std::remove_const_t<std::remove_pointer_t<T>>, char8_t> ||
std::same_as<std::remove_const_t<std::remove_pointer_t<T>>, char16_t> ||
std::same_as<std::remove_const_t<std::remove_pointer_t<T>>, char32_t>)
Checks whether T is a pointer to a character type other than char: signed char, unsigned char,...
Definition util.hpp:175

Detailed Description

Checks whether T is a pointer to a character type other than char: signed char, unsigned char, or a wide character type.

Only a char pointer is a C string. These point at bytes or code units, so they are printed as addresses and compared as pointers.

Template Parameters
Ta type to check