Template Class span#
Defined in File span.h
Class Documentation#
-
template<typename Element>
class span# A type representing a reference to a contiguous buffer of a certain element type
- Template Parameters:
Element – the type of each element in the contiguous buffer
Public Functions
-
span() = default#
-
template<typename Collection, internal::type_deduction::require_span_convertible_t<Collection, Element> = 0>
inline constexpr span(Collection &&collection)#
-
template<typename U, std::enable_if_t<std::is_convertible_v<U, Element>, int> = 0>
inline constexpr span(const span<U> &other)#
-
inline size_t size() const#
-
inline size_t size_bytes() const#
-
inline bool empty() const#