![]() |
MySQL 9.6.0
Source Code Documentation
|
true if Test, with cvref removed, is char, unsigned char, or std::byte.
More...
#include <is_charlike.h>
true if Test, with cvref removed, is char, unsigned char, or std::byte.
This is useful to define APIs that just take a raw pointer to a string, and don't care if the characters are signed or unsigned.
This is intentionally true only for these three types, and not for e.g. int8_t, because the C++ standard defines special cases for them. In particular, reinterpret_cast<T *>(...) is defined for all argument types only when T is char, unsigned char, or std::byte (http://en.cppreference.com/w/cpp/language/reinterpret_cast.html sec "Type
Accessibility"; https://timsong-cpp.github.io/cppwp/n4868/basic.lval#11.3)