TIteratorAdapter

Adapter class for iterator implementation.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

Base

TIteratorAdapter

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/IteratorAdapter.h

Include

#include "Containers/IteratorAdapter.h"

Syntax

template<typename Base>
class TIteratorAdapter : public Base

Remarks

Adapter class for iterator implementation.

This class provides an interface to implement UE compatible iterators with a minimum set of implementation requirements. This provides the user with an easier way to implement custom iterators. The adapter uses a CRTP pattern requiring its base class to implement the following:

Types:

Constructors

Name Description

Public function

TIteratorAdapter()

Public function

TIteratorAdapter

(
    EInPlace,
    Args&&... InArgs
)

Perfect forwarding constructor to the iterator class.

Operators

Name Description

Public function Const

ThisType

 

operator-

(
    SizeType Offset
)

Public function

ThisType &

 

operator--()

Public function

ThisType

 

operator--

(
    int
)

Public function Const

ElementType ...

 

operator*()

Public function Const

ThisType

 

operator+

(
    SizeType Offset
)

Public function

ThisType &

 

operator++()

Public function

ThisType

 

operator++

(
    int
)

Public function

ThisType &

 

operator+=

(
    SizeType Offset
)

Public function

ThisType &

 

operator-=

(
    SizeType Offset
)

Public function Const

ElementType ...

 

operator->()

Typedefs