// Converters between std::span<uint8_t> and std::span<char>. // These are deliberately not templated; we don't think that we need // more generic versions of these, and the need for them could be a code // smell indicating the need for defining whether variables are intended // to be text (char) or binary blobs (uint8_t).
// If there turns out to be a need for many more variants, templates can // be introduced in the future.
inline std::span<char> AsWritableCharSpan(std::span<uint8_t> span) { return std::span<char>(reinterpret_cast<char*>(span.data()), span.size());
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.