#include <span.h>
Public Types | |
using | const_iterator = const_pointer |
using | const_pointer = const T * |
using | const_reference = const T & |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | difference_type = ptrdiff_t |
using | iterator = pointer |
using | pointer = T * |
using | reference = T & |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | size_type = size_t |
using | value_type = absl::remove_cv_t< T > |
Public Member Functions | |
constexpr reference | at (size_type i) const |
constexpr reference | back () const noexcept |
constexpr iterator | begin () const noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cend () const noexcept |
constexpr const_reverse_iterator | crbegin () const noexcept |
constexpr const_reverse_iterator | crend () const noexcept |
constexpr pointer | data () const noexcept |
constexpr bool | empty () const noexcept |
constexpr iterator | end () const noexcept |
constexpr Span | first (size_type len) const |
constexpr reference | front () const noexcept |
constexpr Span | last (size_type len) const |
constexpr size_type | length () const noexcept |
constexpr reference | operator[] (size_type i) const noexcept |
constexpr reverse_iterator | rbegin () const noexcept |
void | remove_prefix (size_type n) noexcept |
void | remove_suffix (size_type n) noexcept |
constexpr reverse_iterator | rend () const noexcept |
constexpr size_type | size () const noexcept |
constexpr | Span () noexcept |
constexpr | Span (pointer array, size_type length) noexcept |
template<size_t N> | |
constexpr | Span (T(&a)[N]) noexcept |
template<typename V , typename = EnableIfConvertibleFrom<V>, typename = EnableIfMutableView<V>> | |
Span (V &v) noexcept | |
template<typename V , typename = EnableIfConvertibleFrom<V>, typename = EnableIfConstView<V>> | |
constexpr | Span (const V &v) noexcept |
template<typename LazyT = T, typename = EnableIfConstView<LazyT>> | |
Span (std::initializer_list< value_type > v) noexcept | |
constexpr Span | subspan (size_type pos=0, size_type len=npos) const |
Static Public Attributes | |
static const size_type | npos = ~(size_type(0)) |
Private Types | |
template<typename U > | |
using | EnableIfConstView = typename std::enable_if< std::is_const< T >::value, U >::type |
template<typename C > | |
using | EnableIfConvertibleFrom = typename std::enable_if< span_internal::HasData< T, C >::value &&span_internal::HasSize< C >::value >::type |
template<typename U > | |
using | EnableIfMutableView = typename std::enable_if<!std::is_const< T >::value, U >::type |
Private Attributes | |
size_type | len_ |
pointer | ptr_ |
Friends | |
template<typename H > | |
H | AbslHashValue (H h, Span v) |
using absl::Span< T >::const_iterator = const_pointer |
using absl::Span< T >::const_pointer = const T* |
using absl::Span< T >::const_reference = const T& |
using absl::Span< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
using absl::Span< T >::difference_type = ptrdiff_t |
|
private |
|
private |
|
private |
using absl::Span< T >::iterator = pointer |
using absl::Span< T >::pointer = T* |
using absl::Span< T >::reference = T& |
using absl::Span< T >::reverse_iterator = std::reverse_iterator<iterator> |
using absl::Span< T >::size_type = size_t |
using absl::Span< T >::value_type = absl::remove_cv_t<T> |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
private |
|
static |
|
private |