18#ifndef INCLUDED_PS_SPAN
19#define INCLUDED_PS_SPAN
55 template<
typename OtherT,
size_t N>
56 constexpr span(
const std::array<OtherT, N>& arr)
59 template<
typename ContinuousRange>
60 constexpr span(ContinuousRange& range)
70 constexpr bool empty()
const {
return size() == 0; }
84template<
typename T,
size_t N>
Simplifed version of std::span (C++20) as we don't support the original one yet.
Definition: Span.h:37
constexpr span(ContinuousRange &range)
Definition: Span.h:60
constexpr bool empty() const
Definition: Span.h:70
constexpr reference operator[](size_type index) const
Definition: Span.h:71
size_t size_type
Definition: Span.h:41
constexpr span(const std::array< OtherT, N > &arr)
Definition: Span.h:56
constexpr span(const span &other)=default
pointer iterator
Definition: Span.h:44
constexpr span subspan(size_type offset) const
Definition: Span.h:77
constexpr span(iterator first, iterator last)
Definition: Span.h:52
T * pointer
Definition: Span.h:42
constexpr span()
Definition: Span.h:46
T & reference
Definition: Span.h:43
constexpr iterator end() const
Definition: Span.h:75
size_type m_Extent
Definition: Span.h:81
constexpr iterator begin() const
Definition: Span.h:74
constexpr span(iterator first, size_type extent)
Definition: Span.h:49
constexpr pointer data() const
Definition: Span.h:72
std::remove_cv_t< T > value_type
Definition: Span.h:40
pointer m_Pointer
Definition: Span.h:80
constexpr size_type size() const
Definition: Span.h:69
constexpr span & operator=(const span &other)=default
T element_type
Definition: Span.h:39
Definition: NetEnet.cpp:26
span(const std::array< T, N > &) -> span< const T >
#define T(string_literal)
Definition: secure_crt.cpp:77