| xgboost | 
一个简单的自定义 Span 类型,使用通用迭代器而不是指针。 更多...
#include <span.h>

| 公共类型 | |
| 使用 | value_type = typename std::iterator_traits< It >::value_type | 
| 使用 | index_type = std::size_t | 
| 使用 | iterator = It | 
| 公共成员函数 | |
| 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 | 
一个简单的自定义Span 类型,使用通用迭代器而不是指针。
| 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 | 
| 
 | 默认 | 
| 
 | inline | 
| 
 | 内联显式 | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlinenoexcept | 
| 
 | inlinenoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inline | 
| 
 | inline | 
| 
 | inlinenoexcept | 
| 
 | inline |