#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 | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span () noexcept |
constexpr | span (const span &) noexcept=default |
constexpr span & | operator= (const span &) noexcept=default |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (pointer __ptr, size_type __count) |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (pointer __f, pointer __l) |
template<size_t _Sz> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (element_type(&__arr)[_Sz]) noexcept |
template<class _OtherElementType , size_t _Sz, std::enable_if_t< std::is_convertible_v< _OtherElementType(*)[], element_type(*)[]>, std::nullptr_t > = nullptr> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (std::array< _OtherElementType, _Sz > &__arr) noexcept |
template<class _OtherElementType , size_t _Sz, 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, _Sz > &__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 , size_t _OtherExtent> | |
constexpr _SYCL_SPAN_INLINE_VISIBILITY | span (const span< _OtherElementType, _OtherExtent > &__other, std::enable_if_t< std::is_convertible_v< _OtherElementType(*)[], element_type(*)[]>, std::nullptr_t >=nullptr) noexcept |
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 span< element_type, _Count > | subspan () const noexcept |
constexpr span< element_type, dynamic_extent > _SYCL_SPAN_INLINE_VISIBILITY | 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, dynamic_extent > | __as_bytes () const noexcept |
_SYCL_SPAN_INLINE_VISIBILITY span< byte, dynamic_extent > | __as_writable_bytes () const noexcept |
Static Public Attributes | |
static constexpr size_type | extent = dynamic_extent |
Definition at line 413 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::const_pointer = const _Tp * |
Definition at line 422 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::const_reference = const _Tp & |
Definition at line 424 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::difference_type = ptrdiff_t |
Definition at line 420 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::element_type = _Tp |
Definition at line 417 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::iterator = pointer |
Definition at line 425 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::pointer = _Tp * |
Definition at line 421 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::reference = _Tp & |
Definition at line 423 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::rev_iterator = std::reverse_iterator<pointer> |
Definition at line 426 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::size_type = size_t |
Definition at line 419 of file sycl_span.hpp.
using sycl::_V1::span< _Tp, dynamic_extent >::value_type = std::remove_cv_t<_Tp> |
Definition at line 418 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 431 of file sycl_span.hpp.
|
constexprdefaultnoexcept |
|
inlineconstexpr |
Definition at line 437 of file sycl_span.hpp.
|
inlineconstexpr |
Definition at line 439 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 443 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 451 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 460 of file sycl_span.hpp.
|
inlineconstexpr |
Definition at line 465 of file sycl_span.hpp.
|
inlineconstexpr |
Definition at line 472 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 480 of file sycl_span.hpp.
References sycl::_V1::span< _Tp, _Extent >::data().
|
inlinenoexcept |
Definition at line 590 of file sycl_span.hpp.
|
inlinenoexcept |
Definition at line 595 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 566 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 576 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 571 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 551 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 579 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 491 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 505 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 561 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 498 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 513 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
Definition at line 556 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT.
|
inlineconstexprnoexcept |
Definition at line 582 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 585 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 545 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 548 of file sycl_span.hpp.
|
inlineconstexprnoexcept |
Definition at line 521 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT, and sycl::_V1::dynamic_extent.
|
inlineconstexprnoexcept |
Definition at line 531 of file sycl_span.hpp.
References _SYCL_SPAN_ASSERT, and sycl::_V1::dynamic_extent.
|
staticconstexpr |
Definition at line 428 of file sycl_span.hpp.