|
template<std::size_t E = Extent, typename std::enable_if<(E==dynamic_extent||E<=0), int >::type = 0> |
constexpr | span () noexcept |
|
TCB_SPAN_CONSTEXPR11 | span (pointer ptr, size_type count) |
|
TCB_SPAN_CONSTEXPR11 | span (pointer first_elem, pointer last_elem) |
|
template<std::size_t N, std::size_t E = Extent, typename std::enable_if<(E==dynamic_extent||N==E) &&detail::is_container_element_type_compatible< element_type(&)[N], ElementType >::value, int >::type = 0> |
constexpr | span (element_type(&arr)[N]) noexcept |
|
template<std::size_t N, std::size_t E = Extent, typename std::enable_if<(E==dynamic_extent||N==E) &&detail::is_container_element_type_compatible< std::array< value_type, N > &, ElementType >::value, int >::type = 0> |
TCB_SPAN_ARRAY_CONSTEXPR | span (std::array< value_type, N > &arr) noexcept |
|
template<std::size_t N, std::size_t E = Extent, typename std::enable_if<(E==dynamic_extent||N==E) &&detail::is_container_element_type_compatible< const std::array< value_type, N > &, ElementType >::value, int >::type = 0> |
TCB_SPAN_ARRAY_CONSTEXPR | span (const std::array< value_type, N > &arr) noexcept |
|
template<typename Container , std::size_t E = Extent, typename std::enable_if< E==dynamic_extent &&detail::is_container< Container >::value &&detail::is_container_element_type_compatible< Container &, ElementType >::value, int >::type = 0> |
constexpr | span (Container &cont) |
|
template<typename Container , std::size_t E = Extent, typename std::enable_if< E==dynamic_extent &&detail::is_container< Container >::value &&detail::is_container_element_type_compatible< const Container &, ElementType >::value, int >::type = 0> |
constexpr | span (const Container &cont) |
|
constexpr | span (const span &other) noexcept=default |
|
template<typename OtherElementType , std::size_t OtherExtent, typename std::enable_if<(Extent==OtherExtent||Extent==dynamic_extent) &&std::is_convertible< OtherElementType(*)[], ElementType(*)[]>::value, int >::type = 0> |
constexpr | span (const span< OtherElementType, OtherExtent > &other) noexcept |
|
| ~span () noexcept=default |
|
TCB_SPAN_CONSTEXPR_ASSIGN span & | operator= (const span &other) noexcept=default |
|
template<std::size_t Count> |
TCB_SPAN_CONSTEXPR11 span< element_type, Count > | first () const |
|
template<std::size_t Count> |
TCB_SPAN_CONSTEXPR11 span< element_type, Count > | last () const |
|
template<std::size_t Offset, std::size_t Count = dynamic_extent> |
TCB_SPAN_CONSTEXPR11 subspan_return_t< Offset, Count > | subspan () const |
|
TCB_SPAN_CONSTEXPR11 span< element_type, dynamic_extent > | first (size_type count) const |
|
TCB_SPAN_CONSTEXPR11 span< element_type, dynamic_extent > | last (size_type count) const |
|
TCB_SPAN_CONSTEXPR11 span< element_type, dynamic_extent > | subspan (size_type offset, size_type count=dynamic_extent) const |
|
constexpr size_type | size () const noexcept |
|
constexpr size_type | size_bytes () const noexcept |
|
TCB_SPAN_NODISCARD constexpr bool | empty () const noexcept |
|
TCB_SPAN_CONSTEXPR11 reference | operator[] (size_type idx) const |
|
TCB_SPAN_CONSTEXPR11 reference | front () const |
|
TCB_SPAN_CONSTEXPR11 reference | back () const |
|
constexpr pointer | data () const noexcept |
|
constexpr iterator | begin () const noexcept |
|
constexpr iterator | end () const noexcept |
|
TCB_SPAN_ARRAY_CONSTEXPR reverse_iterator | rbegin () const noexcept |
|
TCB_SPAN_ARRAY_CONSTEXPR reverse_iterator | rend () const noexcept |
|