v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
WrappedIterator< Iterator, ElementType > Class Template Reference

#include <v8-internal.h>

Inheritance diagram for WrappedIterator< Iterator, ElementType >:
Collaboration diagram for WrappedIterator< Iterator, ElementType >:

Public Types

using difference_type = typename std::iterator_traits< Iterator >::difference_type
 
using value_type = std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::value_type, ElementType >
 
using pointer = std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::pointer, std::add_pointer_t< ElementType > >
 
using reference = std::conditional_t< std::is_void_v< ElementType >, typename std::iterator_traits< Iterator >::reference, std::add_lvalue_reference_t< ElementType > >
 
using iterator_category = typename std::iterator_traits< Iterator >::iterator_category
 

Public Member Functions

constexpr WrappedIterator () noexcept=default
 
constexpr WrappedIterator (Iterator it) noexcept
 
template<typename OtherIterator , typename OtherElementType , typename = std::enable_if_t< std::is_convertible_v<OtherIterator, Iterator>>>
constexpr WrappedIterator (const WrappedIterator< OtherIterator, OtherElementType > &other) noexcept
 
constexpr reference operator* () const noexcept
 
constexpr pointer operator-> () const noexcept
 
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator== (const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
 
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator!= (const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
 
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator< (const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
 
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator<= (const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
 
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator> (const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
 
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator>= (const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
 
constexpr WrappedIteratoroperator++ () noexcept
 
constexpr WrappedIterator operator++ (int) noexcept
 
constexpr WrappedIteratoroperator-- () noexcept
 
constexpr WrappedIterator operator-- (int) noexcept
 
constexpr WrappedIterator operator+ (difference_type n) const noexcept
 
constexpr WrappedIteratoroperator+= (difference_type n) noexcept
 
constexpr WrappedIterator operator- (difference_type n) const noexcept
 
constexpr WrappedIteratoroperator-= (difference_type n) noexcept
 
template<typename OtherIterator , typename OtherElementType >
constexpr auto operator- (const WrappedIterator< OtherIterator, OtherElementType > &other) const noexcept
 
constexpr reference operator[] (difference_type n) const noexcept
 
constexpr const Iterator & base () const noexcept
 

Friends

constexpr WrappedIterator operator+ (difference_type n, const WrappedIterator &x) noexcept
 

Detailed Description

template<typename Iterator, typename ElementType = void>
class v8::internal::WrappedIterator< Iterator, ElementType >

Definition at line 1542 of file v8-internal.h.

Member Typedef Documentation

◆ difference_type

template<typename Iterator , typename ElementType = void>
using difference_type = typename std::iterator_traits<Iterator>::difference_type

Definition at line 1551 of file v8-internal.h.

◆ iterator_category

template<typename Iterator , typename ElementType = void>
using iterator_category = typename std::iterator_traits<Iterator>::iterator_category

Definition at line 1565 of file v8-internal.h.

◆ pointer

template<typename Iterator , typename ElementType = void>
using pointer = std::conditional_t<std::is_void_v<ElementType>, typename std::iterator_traits<Iterator>::pointer, std::add_pointer_t<ElementType> >

Definition at line 1557 of file v8-internal.h.

◆ reference

template<typename Iterator , typename ElementType = void>
using reference = std::conditional_t<std::is_void_v<ElementType>, typename std::iterator_traits<Iterator>::reference, std::add_lvalue_reference_t<ElementType> >

Definition at line 1561 of file v8-internal.h.

◆ value_type

template<typename Iterator , typename ElementType = void>
using value_type = std::conditional_t<std::is_void_v<ElementType>, typename std::iterator_traits<Iterator>::value_type, ElementType>

Definition at line 1553 of file v8-internal.h.

Constructor & Destructor Documentation

◆ WrappedIterator() [1/3]

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator ( )
constexprdefaultnoexcept

◆ WrappedIterator() [2/3]

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator ( Iterator  it)
inlineexplicitconstexprnoexcept

Definition at line 1569 of file v8-internal.h.

◆ WrappedIterator() [3/3]

template<typename Iterator , typename ElementType = void>
template<typename OtherIterator , typename OtherElementType , typename = std::enable_if_t< std::is_convertible_v<OtherIterator, Iterator>>>
constexpr WrappedIterator ( const WrappedIterator< OtherIterator, OtherElementType > &  other)
inlineconstexprnoexcept

Definition at line 1576 of file v8-internal.h.

Member Function Documentation

◆ base()

template<typename Iterator , typename ElementType = void>
constexpr const Iterator & base ( ) const
inlineconstexprnoexcept

Definition at line 1706 of file v8-internal.h.

◆ operator!=()

template<typename Iterator , typename ElementType = void>
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator!= ( const WrappedIterator< OtherIterator, OtherElementType > &  other) const
inlineconstexprnoexcept

Definition at line 1623 of file v8-internal.h.

◆ operator*()

template<typename Iterator , typename ElementType = void>
constexpr reference operator* ( ) const
inlineconstexprnoexcept

Definition at line 1580 of file v8-internal.h.

◆ operator+()

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator operator+ ( difference_type  n) const
inlineconstexprnoexcept

Definition at line 1674 of file v8-internal.h.

◆ operator++() [1/2]

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator & operator++ ( )
inlineconstexprnoexcept

Definition at line 1655 of file v8-internal.h.

◆ operator++() [2/2]

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator operator++ ( int  )
inlineconstexprnoexcept

Definition at line 1659 of file v8-internal.h.

◆ operator+=()

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator & operator+= ( difference_type  n)
inlineconstexprnoexcept

Definition at line 1684 of file v8-internal.h.

◆ operator-() [1/2]

template<typename Iterator , typename ElementType = void>
template<typename OtherIterator , typename OtherElementType >
constexpr auto operator- ( const WrappedIterator< OtherIterator, OtherElementType > &  other) const
inlineconstexprnoexcept

Definition at line 1696 of file v8-internal.h.

◆ operator-() [2/2]

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator operator- ( difference_type  n) const
inlineconstexprnoexcept

Definition at line 1688 of file v8-internal.h.

◆ operator--() [1/2]

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator & operator-- ( )
inlineconstexprnoexcept

Definition at line 1665 of file v8-internal.h.

◆ operator--() [2/2]

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator operator-- ( int  )
inlineconstexprnoexcept

Definition at line 1669 of file v8-internal.h.

◆ operator-=()

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator & operator-= ( difference_type  n)
inlineconstexprnoexcept

Definition at line 1692 of file v8-internal.h.

◆ operator->()

template<typename Iterator , typename ElementType = void>
constexpr pointer operator-> ( ) const
inlineconstexprnoexcept

Definition at line 1581 of file v8-internal.h.

◆ operator<()

template<typename Iterator , typename ElementType = void>
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator< ( const WrappedIterator< OtherIterator, OtherElementType > &  other) const
inlineconstexprnoexcept

Definition at line 1630 of file v8-internal.h.

◆ operator<=()

template<typename Iterator , typename ElementType = void>
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator<= ( const WrappedIterator< OtherIterator, OtherElementType > &  other) const
inlineconstexprnoexcept

Definition at line 1636 of file v8-internal.h.

◆ operator==()

template<typename Iterator , typename ElementType = void>
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator== ( const WrappedIterator< OtherIterator, OtherElementType > &  other) const
inlineconstexprnoexcept

Definition at line 1590 of file v8-internal.h.

◆ operator>()

template<typename Iterator , typename ElementType = void>
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator> ( const WrappedIterator< OtherIterator, OtherElementType > &  other) const
inlineconstexprnoexcept

Definition at line 1642 of file v8-internal.h.

◆ operator>=()

template<typename Iterator , typename ElementType = void>
template<typename OtherIterator , typename OtherElementType >
constexpr bool operator>= ( const WrappedIterator< OtherIterator, OtherElementType > &  other) const
inlineconstexprnoexcept

Definition at line 1648 of file v8-internal.h.

◆ operator[]()

template<typename Iterator , typename ElementType = void>
constexpr reference operator[] ( difference_type  n) const
inlineconstexprnoexcept

Definition at line 1701 of file v8-internal.h.

Friends And Related Symbol Documentation

◆ operator+

template<typename Iterator , typename ElementType = void>
constexpr WrappedIterator operator+ ( difference_type  n,
const WrappedIterator< Iterator, ElementType > &  x 
)
friend

Definition at line 1680 of file v8-internal.h.


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