libcopp
2.2.0
|
#include <span.h>
Public Types | |
using | element_type = T |
using | value_type = typename std::remove_cv< T >::type |
using | size_type = std::size_t |
using | difference_type = std::ptrdiff_t |
using | pointer = T * |
using | const_pointer = const T * |
using | reference = T & |
using | const_reference = const T & |
using | iterator = T * |
using | reverse_iterator = std::reverse_iterator< iterator > |
Public Member Functions | |
span () noexcept | |
span (T *input_data, size_t count) noexcept | |
span (T *first, T *last) noexcept | |
template<size_t N> | |
span (T(&array)[N]) noexcept | |
template<size_t N> | |
span (std::array< T, N > &array) noexcept | |
template<size_t N> | |
span (const std::array< T, N > &array) noexcept | |
template<class C , typename std::enable_if< !detail::is_specialized_span_convertible< typename std::decay< C >::type >::value &&std::is_convertible< typename std::remove_pointer< decltype(std::declval< C >().data())>::type(*)[], T(*)[]>::value &&std::is_convertible< decltype(std::declval< C >().size()), size_t >::value , ::type * = nullptr> | |
span (C &&c) noexcept(noexcept(c.data(), c.size())) | |
template<class U , size_t N, typename std::enable_if< std::is_convertible< U(*)[], T(*)[]>::value >::type * = nullptr> | |
span (const span< U, N > &other) noexcept | |
span (const span &) noexcept=default | |
bool | empty () const noexcept |
T * | data () const noexcept |
size_t | size () const noexcept |
T & | operator[] (size_t index) const noexcept |
T * | begin () const noexcept |
T * | end () const noexcept |
Static Public Attributes | |
static constexpr size_t | extent = dynamic_extent |
Private Attributes | |
size_t | extent_ |
T * | data_ |
using gsl::span< T, dynamic_extent >::const_pointer = const T * |
using gsl::span< T, dynamic_extent >::const_reference = const T & |
using gsl::span< T, dynamic_extent >::difference_type = std::ptrdiff_t |
using gsl::span< T, dynamic_extent >::element_type = T |
using gsl::span< T, dynamic_extent >::iterator = T * |
using gsl::span< T, dynamic_extent >::pointer = T * |
using gsl::span< T, dynamic_extent >::reference = T & |
using gsl::span< T, dynamic_extent >::reverse_iterator = std::reverse_iterator<iterator> |
using gsl::span< T, dynamic_extent >::size_type = std::size_t |
using gsl::span< T, dynamic_extent >::value_type = typename std::remove_cv<T>::type |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 234 of file span.h.
References gsl::span< T, EXTENT >::data_.
|
inlinenoexcept |
Definition at line 225 of file span.h.
References gsl::span< T, EXTENT >::data_.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 236 of file span.h.
References gsl::span< T, EXTENT >::data_.
|
inlinenoexcept |
Definition at line 229 of file span.h.
References gsl::span< T, EXTENT >::data_.
|
inlinenoexcept |
|
private |
|
staticconstexpr |
|
private |