Lines Matching refs:Span
31 class Span; variable
41 friend bool operator==(Span<T> lhs, Span<T> rhs) {
58 friend bool operator!=(Span<T> lhs, Span<T> rhs) { return !(lhs == rhs); }
94 class Span : private internal::SpanBase<const T> {
111 constexpr Span() : Span(nullptr, 0) {} in Span() function
112 constexpr Span(T *ptr, size_t len) : data_(ptr), size_(len) {} in Span() function
115 constexpr Span(T (&array)[N]) : Span(array, N) {} in Span() function
120 Span(const C &container) : data_(container.data()), size_(container.size()) {} in Span() function
125 explicit Span(C &container) in Span() function
158 Span subspan(size_t pos = 0, size_t len = npos) const {
162 return Span(data_ + pos, std::min(size_ - pos, len));
171 const size_t Span<T>::npos;
174 Span<T> MakeSpan(T *ptr, size_t size) { in MakeSpan()
175 return Span<T>(ptr, size); in MakeSpan()
184 Span<const T> MakeConstSpan(T *ptr, size_t size) { in MakeConstSpan()
185 return Span<const T>(ptr, size); in MakeConstSpan()