CXXIter 0.2
|
Trait, that iterators implement whose elements are stored in a contiguous block of memory. More...
#include <Traits.h>
Public Types | |
using | ItemPtr = std::add_pointer_t< std::remove_reference_t< typename Iterator< T >::Item > > |
Pointer type to an item of this iterator. More... | |
Static Public Member Functions | |
static constexpr ItemPtr | currentPtr (typename trait::Iterator< T >::Self &self)=delete |
Get the pointer of the current element. More... | |
Trait, that iterators implement whose elements are stored in a contiguous block of memory.
This trait allows downstream elements to assume that it is valid to access following elements by reading from the current element onward.
using CXXIter::trait::ContiguousMemoryIterator< T >::ItemPtr = std::add_pointer_t<std::remove_reference_t<typename Iterator<T>::Item> > |
|
inlinestaticconstexprdelete |
Get the pointer of the current element.
self | Reference to the instance of the class for which trait::ExactSizeIterator is being specialized. |