Generic class for row-major 2D spans. Not compliant with STL container semantics/syntax.
More...
template<typename T, template< typename, std::size_t > typename RowType>
class cudf::detail::base_2dspan< T, RowType >
Generic class for row-major 2D spans. Not compliant with STL container semantics/syntax.
The index operator returns the corresponding row.
Definition at line 405 of file span.hpp.
template<typename T , template< typename, std::size_t > typename RowType>
template<typename OtherT , template< typename, size_t > typename OtherRowType, std::enable_if_t< std::is_convertible_v< OtherRowType< OtherT, dynamic_extent >, RowType< T, dynamic_extent >>, void > * = nullptr>
Construct a 2D span from another 2D span of convertible type.
- Template Parameters
-
OtherT | Type of the other 2D span |
OtherRowType | Type of the row of the other 2D span |
- Parameters
-
Definition at line 485 of file span.hpp.
template<typename T , template< typename, std::size_t > typename RowType>
Returns a reference to the row-th element of the sequence.
The behavior is undefined if row is out of range (i.e., if it is greater than or equal to size()).
- Parameters
-
row | the index of the element to access |
- Returns
- A reference to the row-th element of the sequence, i.e.,
data()[row]
Definition at line 460 of file span.hpp.