folly::const_span_cast

Casts in to a span of U over the same memory using const_cast.

Synopses

Declared in <folly/container/span.h>

Casts in to a span of U over the same memory using const_cast.

template<typename U>
constexpr
auto
const_span_cast(/* implementation-defined */ in);
» more...

Casts in to a span of U over the same memory using const_cast.

template<typename U>
constexpr
auto
const_span_cast(std::span<T, Extent> in);
» more...

Return Value

A span of U referring to the same region.

Parameters

NameDescription
inThe source span.