ByteType

Constrains a type to a single-byte type usable as a raw buffer element.

Synopsis

Declared in <crypto/common.h>

template<typename B>
concept ByteType = std::same_as<B, unsigned char> || std::same_as<B, std::byte>;

Template Parameters

NameDescription
BThe candidate byte type (unsigned char or std::byte).