#include <sycl/sycl_span.hpp>
Public Types | |
using | element_type = _Tp |
using | value_type = std::remove_cv_t< _Tp > |
using | size_type = size_t |
using | difference_type = ptrdiff_t |
using | pointer = _Tp * |
using | const_pointer = const _Tp * |
using | reference = _Tp & |
using | const_reference = const _Tp & |
using | iterator = pointer |
using | rev_iterator = std::reverse_iterator< pointer > |
Public Member Functions | |
template<size_t _Sz = _Extent, std::enable_if_t< _Sz==0, std::nullptr_t > = nullptr> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span () noexcept |
constexpr | span (const span &) noexcept=default |
constexpr span & | operator= (const span &) noexcept=default |
template<size_t _Sz = _Extent> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (element_type(&__arr)[_Sz]) |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (pointer __ptr, size_type __count) |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (pointer __f, pointer __l) |
template<class _OtherElementType , std::enable_if_t< std::is_convertible_v< _OtherElementType(*)[], element_type(*)[]>, std::nullptr_t > = nullptr> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (std::array< _OtherElementType, _Extent > &__arr) noexcept |
template<class _OtherElementType , std::enable_if_t< std::is_convertible_v< const _OtherElementType(*)[], element_type(*)[]>, std::nullptr_t > = nullptr> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (const std::array< _OtherElementType, _Extent > &__arr) noexcept |
template<class _Container > | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (_Container &__c, std::enable_if_t< __is_span_compatible_container< _Container, _Tp >::value, std::nullptr_t >=nullptr) |
template<class _Container > | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (const _Container &__c, std::enable_if_t< __is_span_compatible_container< const _Container, _Tp >::value, std::nullptr_t >=nullptr) |
template<class _OtherElementType > | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (const span< _OtherElementType, _Extent > &__other, std::enable_if_t< std::is_convertible_v< _OtherElementType(*)[], element_type(*)[]>, std::nullptr_t >=nullptr) |
template<size_t _Count> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY span< element_type, _Count > | first () const noexcept |
template<size_t _Count> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY span< element_type, _Count > | last () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY span< element_type, dynamic_extent > | first (size_type __count) const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY span< element_type, dynamic_extent > | last (size_type __count) const noexcept |
template<size_t _Offset, size_t _Count = dynamic_extent> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY auto | subspan () const noexcept -> span< element_type,(_Count !=dynamic_extent ? _Count :_Extent - _Offset)> |
constexpr _SYCL_SPAN_INLINE_VISIBILITY span< element_type, dynamic_extent > | subspan (size_type __offset, size_type __count=dynamic_extent) const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY size_type | size () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY size_type | size_bytes () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY bool | empty () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY reference | operator[] (size_type __idx) const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY reference | front () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY reference | back () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY pointer | data () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY iterator | begin () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY iterator | end () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY rev_iterator | rbegin () const noexcept |
constexpr _SYCL_SPAN_INLINE_VISIBILITY rev_iterator | rend () const noexcept |
_SYCL_SPAN_INLINE_VISIBILITY span< const byte, _Extent *sizeof(element_type)> | __as_bytes () const noexcept |
_SYCL_SPAN_INLINE_VISIBILITY span< byte, _Extent *sizeof(element_type)> | __as_writable_bytes () const noexcept |
Static Public Attributes | |
static constexpr size_type | extent = _Extent |
Definition at line 151 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::const_pointer = const _Tp * |
Definition at line 202 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::const_reference = const _Tp & |
Definition at line 204 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::difference_type = ptrdiff_t |
Definition at line 200 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::element_type = _Tp |
Definition at line 197 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::iterator = pointer |
Definition at line 205 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::pointer = _Tp * |
Definition at line 201 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::reference = _Tp & |
Definition at line 203 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::rev_iterator = std::reverse_iterator<pointer> |
Definition at line 206 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::size_type = size_t |
Definition at line 199 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, _Extent >::value_type = std::remove_cv_t<_Tp> |
Definition at line 198 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 213 of file sycl_span.hpp.
|
constexprdefaultnoexcept |
|
inlineexplicitconstexpr |
Definition at line 219 of file sycl_span.hpp.
|
inlineexplicitconstexpr |
Definition at line 227 of file sycl_span.hpp.
|
inlineexplicitconstexpr |
Definition at line 234 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 245 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 254 of file sycl_span.hpp.
|
inlineexplicitconstexpr |
Definition at line 259 of file sycl_span.hpp.
|
inlineexplicitconstexpr |
Definition at line 269 of file sycl_span.hpp.
|
inlineconstexpr |
Definition at line 280 of file sycl_span.hpp.
References sycl::_V1::span< _Tp, _Extent >::data().
|
inlinenoexcept |
Definition at line 395 of file sycl_span.hpp.
|
inlinenoexcept |
Definition at line 401 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 371 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 381 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 376 of file sycl_span.hpp.
Referenced by sycl::_V1::span< _Tp, _Extent >::span(), and sycl::_V1::span< _Tp, dynamic_extent >::span().
|
inlineconstexprnoexcept |
Definition at line 356 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 384 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 291 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 305 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 366 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 298 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 313 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
Definition at line 361 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 387 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 390 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 350 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 353 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 320 of file sycl_span.hpp.
References sycl::_V1::dynamic_extent.
|
inlineconstexprnoexcept |
Definition at line 336 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT, and sycl::_V1::dynamic_extent.
|
staticconstexpr |
Definition at line 208 of file sycl_span.hpp.