Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
v8::MemorySpan< T >::Iterator Class Reference

#include <v8-memory-span.h>

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = T
 
using pointer = value_type *
 
using reference = value_type &
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

constexpr Iterator ()=default
 
constexpr Iteratoroperator++ ()
 
constexpr Iterator operator++ (int)
 
constexpr Iteratoroperator-- ()
 
constexpr Iterator operator-- (int)
 
constexpr Iteratoroperator+= (difference_type rhs)
 
constexpr Iteratoroperator-= (difference_type rhs)
 
constexpr reference operator* () const
 
constexpr pointer operator-> () const
 
constexpr reference operator[] (size_t offset) const
 

Friends

class MemorySpan< T >
 
constexpr bool operator== (const Iterator &a, const Iterator &b)
 
constexpr bool operator!= (const Iterator &a, const Iterator &b)
 
constexpr bool operator< (const Iterator &a, const Iterator &b)
 
constexpr bool operator<= (const Iterator &a, const Iterator &b)
 
constexpr bool operator> (const Iterator &a, const Iterator &b)
 
constexpr bool operator>= (const Iterator &a, const Iterator &b)
 
constexpr Iterator operator+ (Iterator lhs, difference_type rhs)
 
constexpr Iterator operator+ (difference_type lhs, const Iterator &rhs)
 
constexpr Iterator operator- (Iterator lhs, difference_type rhs)
 
constexpr difference_type operator- (const Iterator &lhs, const Iterator &rhs)
 

Member Typedef Documentation

◆ difference_type

template<typename T >
using v8::MemorySpan< T >::Iterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<typename T >
using v8::MemorySpan< T >::Iterator::iterator_category = std::random_access_iterator_tag

◆ pointer

template<typename T >
using v8::MemorySpan< T >::Iterator::pointer = value_type*

◆ reference

template<typename T >
using v8::MemorySpan< T >::Iterator::reference = value_type&

◆ value_type

template<typename T >
using v8::MemorySpan< T >::Iterator::value_type = T

Constructor & Destructor Documentation

◆ Iterator()

template<typename T >
constexpr v8::MemorySpan< T >::Iterator::Iterator ( )
constexprdefault

Member Function Documentation

◆ operator*()

template<typename T >
constexpr reference v8::MemorySpan< T >::Iterator::operator* ( ) const
inlineconstexpr

◆ operator++() [1/2]

template<typename T >
constexpr Iterator & v8::MemorySpan< T >::Iterator::operator++ ( )
inlineconstexpr

◆ operator++() [2/2]

template<typename T >
constexpr Iterator v8::MemorySpan< T >::Iterator::operator++ ( int  )
inlineconstexpr

◆ operator+=()

template<typename T >
constexpr Iterator & v8::MemorySpan< T >::Iterator::operator+= ( difference_type  rhs)
inlineconstexpr

◆ operator--() [1/2]

template<typename T >
constexpr Iterator & v8::MemorySpan< T >::Iterator::operator-- ( )
inlineconstexpr

◆ operator--() [2/2]

template<typename T >
constexpr Iterator v8::MemorySpan< T >::Iterator::operator-- ( int  )
inlineconstexpr

◆ operator-=()

template<typename T >
constexpr Iterator & v8::MemorySpan< T >::Iterator::operator-= ( difference_type  rhs)
inlineconstexpr

◆ operator->()

template<typename T >
constexpr pointer v8::MemorySpan< T >::Iterator::operator-> ( ) const
inlineconstexpr

◆ operator[]()

template<typename T >
constexpr reference v8::MemorySpan< T >::Iterator::operator[] ( size_t  offset) const
inlineconstexpr

Friends And Related Function Documentation

◆ MemorySpan< T >

template<typename T >
friend class MemorySpan< T >
friend

◆ operator!=

template<typename T >
constexpr bool operator!= ( const Iterator a,
const Iterator b 
)
friend

◆ operator+ [1/2]

template<typename T >
constexpr Iterator operator+ ( difference_type  lhs,
const Iterator rhs 
)
friend

◆ operator+ [2/2]

template<typename T >
constexpr Iterator operator+ ( Iterator  lhs,
difference_type  rhs 
)
friend

◆ operator- [1/2]

template<typename T >
constexpr difference_type operator- ( const Iterator lhs,
const Iterator rhs 
)
friend

◆ operator- [2/2]

template<typename T >
constexpr Iterator operator- ( Iterator  lhs,
difference_type  rhs 
)
friend

◆ operator<

template<typename T >
constexpr bool operator< ( const Iterator a,
const Iterator b 
)
friend

◆ operator<=

template<typename T >
constexpr bool operator<= ( const Iterator a,
const Iterator b 
)
friend

◆ operator==

template<typename T >
constexpr bool operator== ( const Iterator a,
const Iterator b 
)
friend

◆ operator>

template<typename T >
constexpr bool operator> ( const Iterator a,
const Iterator b 
)
friend

◆ operator>=

template<typename T >
constexpr bool operator>= ( const Iterator a,
const Iterator b 
)
friend

The documentation for this class was generated from the following file: