Lines Matching refs:span_
198 constexpr basic_string_span(pointer ptr, index_type length) : span_(ptr, length) {}
199 constexpr basic_string_span(pointer firstElem, pointer lastElem) : span_(firstElem, lastElem) {}
204 constexpr basic_string_span(element_type (&arr)[N]) : span_(remove_z(arr))
208 constexpr basic_string_span(std::array<ArrayElementType, N>& arr) noexcept : span_(arr)
212 constexpr basic_string_span(const std::array<ArrayElementType, N>& arr) noexcept : span_(arr)
219 : span_(&str[0], narrow_cast<std::ptrdiff_t>(str.length()))
224 : span_(&str[0], str.length())
234 constexpr basic_string_span(Container& cont) : span_(cont)
243 constexpr basic_string_span(const Container& cont) : span_(cont)
252 : span_(other.data(), other.length())
258 return {span_.template first<Count>()};
263 return {span_.first(count)};
269 return {span_.template last<Count>()};
274 return {span_.last(count)};
280 return {span_.template subspan<Offset, Count>()};
286 return {span_.subspan(offset, count)};
289 constexpr reference operator[](index_type idx) const { return span_[idx]; }
290 constexpr reference operator()(index_type idx) const { return span_[idx]; }
292 constexpr pointer data() const { return span_.data(); }
294 constexpr index_type length() const noexcept { return span_.size(); }
295 constexpr index_type size() const noexcept { return span_.size(); }
296 constexpr index_type size_bytes() const noexcept { return span_.size_bytes(); }
297 constexpr index_type length_bytes() const noexcept { return span_.length_bytes(); }
300 constexpr iterator begin() const noexcept { return span_.begin(); }
301 constexpr iterator end() const noexcept { return span_.end(); }
303 constexpr const_iterator cbegin() const noexcept { return span_.cbegin(); }
304 constexpr const_iterator cend() const noexcept { return span_.cend(); }
306 constexpr reverse_iterator rbegin() const noexcept { return span_.rbegin(); }
307 constexpr reverse_iterator rend() const noexcept { return span_.rend(); }
309 constexpr const_reverse_iterator crbegin() const noexcept { return span_.crbegin(); }
310 constexpr const_reverse_iterator crend() const noexcept { return span_.crend(); }
324 impl_type span_;
403 constexpr basic_zstring_span(impl_type s) : span_(s)
421 constexpr bool empty() const noexcept { return span_.size() == 0; }
425 const auto sz = span_.size();
426 return {span_.data(), sz > 1 ? sz - 1 : 0};
428 constexpr string_span_type ensure_z() const { return gsl::ensure_z(span_); }
430 constexpr const_zstring_type assume_z() const noexcept { return span_.data(); }
433 impl_type span_;