Medial Code Documentation
|
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 | |
XGBOOST_DEVICE | IterSpan (It it, index_type size) |
XGBOOST_DEVICE | IterSpan (common::Span< It, dynamic_extent > span) |
XGBOOST_DEVICE index_type | size () const noexcept |
XGBOOST_DEVICE decltype(auto) | operator[] (index_type i) const |
XGBOOST_DEVICE decltype(auto) | 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 |
XGBOOST_DEVICE constexpr iterator | begin () const noexcept |
XGBOOST_DEVICE constexpr iterator | end () const noexcept |
A simple custom Span type that uses general iterator instead of pointer.