xgboost
|
A simple custom Span type that uses general iterator instead of pointer. More...
#include <span.h>
Public Types | |
using | value_type = typename std::iterator_traits< It >::value_type |
using | index_type = std::size_t |
using | iterator = It |
Public Member Functions | |
IterSpan ()=default | |
XGBOOST_DEVICE | IterSpan (It it, index_type size) |
XGBOOST_DEVICE | IterSpan (common::Span< It, dynamic_extent > span) |
XGBOOST_DEVICE index_type | size () const noexcept |
decltype(auto) XGBOOST_DEVICE | operator[] (index_type i) const |
decltype(auto) XGBOOST_DEVICE | operator[] (index_type i) |
XGBOOST_DEVICE bool | empty () const noexcept |
XGBOOST_DEVICE It | data () const noexcept |
XGBOOST_DEVICE IterSpan< It > | subspan (index_type _offset, index_type _count=dynamic_extent) const |
constexpr XGBOOST_DEVICE iterator | begin () const noexcept |
constexpr XGBOOST_DEVICE iterator | end () const noexcept |
A simple custom Span type that uses general iterator instead of pointer.
using xgboost::common::IterSpan< It >::index_type = std::size_t |
using xgboost::common::IterSpan< It >::iterator = It |
using xgboost::common::IterSpan< It >::value_type = typename std::iterator_traits<It>::value_type |
|
default |
|
inline |
|
inlineexplicit |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |