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

Name

Description

B

The candidate byte type (unsigned char or std::byte).

Created with MrDocs