|
template<std::size_t E = Extent, typename std::enable_if<(E==dynamic_extent||E<=0), int >::type = 0> |
constexpr | span () noexcept |
|
constexpr | span (pointer ptr, size_type count) |
|
constexpr | 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> |
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> |
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 |
|
constexpr span & | operator= (const span &other) noexcept=default |
|
template<std::size_t Count> |
constexpr span< element_type, Count > | first () const |
|
template<std::size_t Count> |
constexpr span< element_type, Count > | last () const |
|
template<std::size_t Offset, std::size_t Count = dynamic_extent> |
constexpr subspan_return_t< Offset, Count > | subspan () const |
|
constexpr span< element_type, dynamic_extent > | first (size_type count) const |
|
constexpr span< element_type, dynamic_extent > | last (size_type count) const |
|
constexpr 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 |
|
constexpr bool | empty () const noexcept |
|
constexpr reference | operator[] (size_type idx) const |
|
constexpr reference | front () const |
|
constexpr reference | back () const |
|
constexpr pointer | data () const noexcept |
|
constexpr iterator | begin () const noexcept |
|
constexpr iterator | end () const noexcept |
|
constexpr reverse_iterator | rbegin () const noexcept |
|
constexpr reverse_iterator | rend () const noexcept |
|