|
BSLS_KEYWORD_CONSTEXPR_CPP14 | span () BSLS_KEYWORD_NOEXCEPT |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (const span &original) BSLS_KEYWORD_NOEXCEPT |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (pointer ptr, size_type count) |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (pointer first, pointer last) |
|
template<size_t SIZE> |
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (typename Span_Utility::TypeIdentity< element_type >::type(&arr)[SIZE]) BSLS_KEYWORD_NOEXCEPT |
|
template<class t_OTHER_TYPE > |
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (bsl::array< t_OTHER_TYPE, EXTENT > &arr, typename bsl::enable_if< Span_Utility::IsArrayConvertible< t_OTHER_TYPE, element_type >::value, void * >::type=NULL) BSLS_KEYWORD_NOEXCEPT |
|
template<class t_OTHER_TYPE > |
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (const bsl::array< t_OTHER_TYPE, EXTENT > &arr, typename bsl::enable_if< Span_Utility::IsArrayConvertible< const t_OTHER_TYPE, element_type >::value, void * >::type=NULL) BSLS_KEYWORD_NOEXCEPT |
|
template<class t_OTHER_TYPE > |
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (std::array< t_OTHER_TYPE, EXTENT > &arr, typename bsl::enable_if< Span_Utility::IsArrayConvertible< t_OTHER_TYPE, element_type >::value, void * >::type=NULL) BSLS_KEYWORD_NOEXCEPT |
|
template<class t_OTHER_TYPE > |
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (const std::array< t_OTHER_TYPE, EXTENT > &arr, typename bsl::enable_if< Span_Utility::IsArrayConvertible< const t_OTHER_TYPE, element_type >::value, void * >::type=NULL) BSLS_KEYWORD_NOEXCEPT |
|
template<class t_OTHER_TYPE > |
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (const span< t_OTHER_TYPE, EXTENT > &other, typename bsl::enable_if< Span_Utility::IsArrayConvertible< t_OTHER_TYPE, element_type >::value, void * >::type=NULL) BSLS_KEYWORD_NOEXCEPT |
|
template<class t_OTHER_TYPE > |
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (const span< t_OTHER_TYPE, dynamic_extent > &other, typename bsl::enable_if< Span_Utility::IsArrayConvertible< t_OTHER_TYPE, element_type >::value, void * >::type=NULL) BSLS_KEYWORD_NOEXCEPT |
|
| ~span () noexcept=default |
| Destroy this object.
|
|
BSLS_KEYWORD_CONSTEXPR_CPP14 reference | back () const |
|
BSLS_KEYWORD_CONSTEXPR pointer | data () const BSLS_KEYWORD_NOEXCEPT |
| Return a pointer to the data referenced by this span.
|
|
BSLS_KEYWORD_CONSTEXPR bool | empty () const BSLS_KEYWORD_NOEXCEPT |
|
template<size_t COUNT> |
BSLS_KEYWORD_CONSTEXPR_CPP14 span< element_type, COUNT > | first () const |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 span< element_type, dynamic_extent > | first (size_type count) const |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 reference | front () const |
|
template<size_t COUNT> |
BSLS_KEYWORD_CONSTEXPR_CPP14 span< element_type, COUNT > | last () const |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 span< element_type, dynamic_extent > | last (size_type count) const |
|
BSLS_KEYWORD_CONSTEXPR size_type | size () const BSLS_KEYWORD_NOEXCEPT |
| Return the size of this span.
|
|
BSLS_KEYWORD_CONSTEXPR size_type | size_bytes () const BSLS_KEYWORD_NOEXCEPT |
| Return the size of this span in bytes.
|
|
template<size_t OFFSET, size_t COUNT> |
BSLS_KEYWORD_CONSTEXPR_CPP14 Span_Utility::SubspanReturnType< TYPE, EXTENT, COUNT, OFFSET >::type | subspan () const |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 span< element_type, dynamic_extent > | subspan (size_type offset, size_type count=dynamic_extent) const |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 reference | operator[] (size_type index) const |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 iterator | begin () const BSLS_KEYWORD_NOEXCEPT |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 iterator | end () const BSLS_KEYWORD_NOEXCEPT |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 reverse_iterator | rbegin () const BSLS_KEYWORD_NOEXCEPT |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 reverse_iterator | rend () const BSLS_KEYWORD_NOEXCEPT |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 span & | operator= (const span &) BSLS_KEYWORD_NOEXCEPT |
|
BSLS_KEYWORD_CONSTEXPR_CPP14 void | swap (span &other) BSLS_KEYWORD_NOEXCEPT |
|
template<class t_OTHER_TYPE > |
BSLS_KEYWORD_CONSTEXPR_CPP14 | span (const bsl::span< t_OTHER_TYPE, bsl::dynamic_extent > &other, typename bsl::enable_if< Span_Utility::IsArrayConvertible< t_OTHER_TYPE, element_type >::value, void * >::type) BSLS_KEYWORD_NOEXCEPT |
|
template<size_t COUNT> |
BSLS_KEYWORD_CONSTEXPR_CPP14 bsl::span< TYPE, COUNT > | first () const |
|
template<size_t COUNT> |
BSLS_KEYWORD_CONSTEXPR_CPP14 bsl::span< TYPE, COUNT > | last () const |
|
template<size_t OFFSET, size_t COUNT> |
BSLS_KEYWORD_CONSTEXPR_CPP14 bsl::span< TYPE, COUNT > | subspan () const |
|
template<class TYPE , size_t EXTENT>
template<size_t OFFSET, size_t COUNT>
If the template parameter COUNT
is dynamic_extent , return a dynamically-sized span consisting consisting of the elements of this span in the half-open range [OFFSET, EXTENT)
. Otherwise, return a statically-sized span consisting of the elements of this span in the half-open range [OFFSET, OFFSET+COUNT)
. The behavior is undefined unless OFFSET <= EXTENT
. If COUNT != dynamic_extent
, the behavior is undefined unless OFFSET + COUNT <= EXTENT
.