|
template<typename C , std::enable_if_t< is_device_span_supported_container< C >::value &&std::is_convertible_v< std::remove_pointer_t< decltype(thrust::raw_pointer_cast(std::declval< C & >().data()))>(*)[], T(*)[]> , * = nullptr> |
constexpr | device_span (C &in) |
|
template<typename C , std::enable_if_t< is_device_span_supported_container< C >::value &&std::is_convertible_v< std::remove_pointer_t< decltype(thrust::raw_pointer_cast(std::declval< C & >().data()))>(*)[], T(*)[]> , * = nullptr> |
constexpr | device_span (C const &in) |
|
template<typename OtherT , std::size_t OtherExtent, std::enable_if_t<(Extent==OtherExtent||Extent==dynamic_extent) &&std::is_convertible_v< OtherT(*)[], T(*)[]>, void > * = nullptr> |
constexpr CUDF_HOST_DEVICE | device_span (device_span< OtherT, OtherExtent > const &other) noexcept |
|
constexpr base::reference | operator[] (size_type idx) const |
| Returns a reference to the idx-th element of the sequence. More...
|
|
constexpr base::reference | front () const |
| Returns a reference to the first element in the span. More...
|
|
constexpr base::reference | back () const |
| Returns a reference to the last element in the span. More...
|
|
constexpr device_span | subspan (typename base::size_type offset, typename base::size_type count) const noexcept |
| Obtains a span that is a view over the count elements of this span starting at offset. More...
|
|
constexpr CUDF_HOST_DEVICE | span_base (pointer data, size_type size) |
| Constructs a span from a pointer and a size. More...
|
|
constexpr CUDF_HOST_DEVICE | span_base (span_base const &) noexcept=default |
| Copy constructor.
|
|
constexpr CUDF_HOST_DEVICE span_base & | operator= (span_base const &) noexcept=default |
| Copy assignment operator. More...
|
|
constexpr CUDF_HOST_DEVICE iterator | begin () const noexcept |
| Returns an iterator to the first element of the span. More...
|
|
constexpr CUDF_HOST_DEVICE iterator | end () const noexcept |
| Returns an iterator to the element following the last element of the span. More...
|
|
constexpr CUDF_HOST_DEVICE pointer | data () const noexcept |
| Returns a pointer to the beginning of the sequence. More...
|
|
constexpr CUDF_HOST_DEVICE size_type | size () const noexcept |
| Returns the number of elements in the span. More...
|
|
constexpr CUDF_HOST_DEVICE size_type | size_bytes () const noexcept |
| Returns the size of the sequence in bytes. More...
|
|
constexpr CUDF_HOST_DEVICE bool | empty () const noexcept |
| Checks if the span is empty. More...
|
|
constexpr device_span< T, cudf::dynamic_extent > | first (size_type count) const noexcept |
| Obtains a subspan consisting of the first N elements of the sequence. More...
|
|
constexpr device_span< T, cudf::dynamic_extent > | last (size_type count) const noexcept |
| Obtains a subspan consisting of the last N elements of the sequence. More...
|
|