folly::const_span_cast

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

Synopsis

Declared in <folly/container/span.h>

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

NOTE

This function is defined as an Algorithm Function Object (AFO).

Return Value

A span of U referring to the same region.

Parameters

NameDescription
inThe source span.