Skip to content

strata::Extent<std::size_t>

Part of Shapes and extents.

template <>
struct strata::Extent< std::size_t >;

A static extent, fixed by the type.

Members

value

std::size_t value

The extent.

Extent

template <index_like T>
consteval Extent(T extent)

Parameters

Name Description
extent The static extent, of any integer type.

Note

consteval: a negative extent, or one as large as the maximum of std::size_t (reserved as the sentinel of a dynamic extent), fails to compile.