Utility Span#

group utility_span

Variables

constexpr std::size_t dynamic_extent = std::numeric_limits<std::size_t>::max()#

A constant used to differentiate std::span of static and dynamic extent.

template<typename T>
struct is_host_span_supported_container : public std::false_type#
template<typename T, typename Alloc>
struct is_host_span_supported_container<std::vector<T, Alloc>> : public std::true_type#
template<typename T, typename Alloc>
struct is_host_span_supported_container<thrust::host_vector<T, Alloc>> : public std::true_type#
template<typename T, typename Alloc>
struct is_host_span_supported_container<std::basic_string<T, std::char_traits<T>, Alloc>> : public std::true_type#
template<typename T, std::size_t Extent = cudf::dynamic_extent>
struct host_span : public cudf::detail::span_base<T, cudf::dynamic_extent, host_span<T, cudf::dynamic_extent>>#
#include <span.hpp>

C++20 std::span with reduced feature set.

Public Types

using base = cudf::detail::span_base<T, Extent, host_span<T, Extent>>#

Base type.

Public Functions

template<typename C>
inline constexpr host_span(C &in)#

Constructor from container

Parameters:

in – The container to construct the span from

template<typename C>
inline constexpr host_span(C const &in)#

Constructor from const container

Parameters:

in – The container to construct the span from

template<typename OtherT, std::size_t OtherExtent>
inline constexpr host_span(host_span<OtherT, OtherExtent> const &other) noexcept#
Parameters:

other – The span to copy

template<typename T>
struct is_device_span_supported_container : public std::false_type#
template<typename T, typename Alloc>
struct is_device_span_supported_container<thrust::device_vector<T, Alloc>> : public std::true_type#
template<typename T>
struct is_device_span_supported_container<rmm::device_vector<T>> : public std::true_type#
template<typename T>
struct is_device_span_supported_container<rmm::device_uvector<T>> : public std::true_type#
template<typename T, std::size_t Extent = cudf::dynamic_extent>
struct device_span : public cudf::detail::span_base<T, cudf::dynamic_extent, device_span<T, cudf::dynamic_extent>>#
#include <span.hpp>

Device version of C++20 std::span with reduced feature set.

Public Types

using base = cudf::detail::span_base<T, Extent, device_span<T, Extent>>#

Base type.

Public Functions

template<typename C>
inline constexpr device_span(C &in)#

Constructor from container

Parameters:

in – The container to construct the span from

template<typename C>
inline constexpr device_span(C const &in)#

Constructor from const container

Parameters:

in – The container to construct the span from

template<typename OtherT, std::size_t OtherExtent>
inline constexpr device_span(device_span<OtherT, OtherExtent> const &other) noexcept#
Parameters:

other – The span to copy