UCharSpanCast

Convert a span to a span of [const]unsigned char viewing the same memory.

Synopsis

Declared in <span.h>

template<
    typename T,
    size_t N>
constexpr
auto
UCharSpanCast(std::span<T, N> s);

Return Value

A span of [const]unsigned char over the same memory as s.

Parameters

NameDescription
sThe span to reinterpret.