swift
Loading...
Searching...
No Matches
swift::misc::Iterators::OutputIterator< F > Class Template Reference

Configurable output iterator using a provided functor to do the insertion. More...

#include <iterator.h>

Public Types

using iterator_category = std::output_iterator_tag
 Types.
using value_type = void
 Types.
using difference_type = void
 Types.
using pointer = void
 Types.
using reference = void
 Types.

Public Member Functions

OutputIterator & operator* ()
 Dereference (no-op).
template<typename T>
requires (!std::is_convertible_v<T, OutputIterator>)
OutputIterator & operator= (T &&value)
 Assignment operator performs the output.
OutputIterator & operator= (const OutputIterator &other)
 Copy assignment operator.
 ~OutputIterator ()=default
 Destructor.
 OutputIterator (const F &func)
 Constructor.
 OutputIterator (F &&func)
 Constructor.
 OutputIterator (const OutputIterator &other)
 Constructor.
OutputIterator & operator++ ()
 Advance the iterator (no-op).
OutputIterator operator++ (int)
 Advance the iterator (no-op).

Detailed Description

template<class F>
class swift::misc::Iterators::OutputIterator< F >

Configurable output iterator using a provided functor to do the insertion.

Definition at line 23 of file iterator.h.

Member Typedef Documentation

◆ difference_type

template<class F>
using swift::misc::Iterators::OutputIterator< F >::difference_type = void

Types.

Definition at line 30 of file iterator.h.

◆ iterator_category

template<class F>
using swift::misc::Iterators::OutputIterator< F >::iterator_category = std::output_iterator_tag

Types.

Definition at line 28 of file iterator.h.

◆ pointer

template<class F>
using swift::misc::Iterators::OutputIterator< F >::pointer = void

Types.

Definition at line 31 of file iterator.h.

◆ reference

template<class F>
using swift::misc::Iterators::OutputIterator< F >::reference = void

Types.

Definition at line 32 of file iterator.h.

◆ value_type

template<class F>
using swift::misc::Iterators::OutputIterator< F >::value_type = void

Types.

Definition at line 29 of file iterator.h.

Constructor & Destructor Documentation

◆ OutputIterator() [1/3]

template<class F>
swift::misc::Iterators::OutputIterator< F >::OutputIterator ( const F & func)
inlineexplicit

Constructor.

Definition at line 37 of file iterator.h.

◆ OutputIterator() [2/3]

template<class F>
swift::misc::Iterators::OutputIterator< F >::OutputIterator ( F && func)
inlineexplicit

Constructor.

Definition at line 38 of file iterator.h.

◆ OutputIterator() [3/3]

template<class F>
swift::misc::Iterators::OutputIterator< F >::OutputIterator ( const OutputIterator< F > & other)
inline

Constructor.

Definition at line 39 of file iterator.h.

Member Function Documentation

◆ operator*()

template<class F>
OutputIterator & swift::misc::Iterators::OutputIterator< F >::operator* ( )
inline

Dereference (no-op).

Definition at line 49 of file iterator.h.

◆ operator++() [1/2]

template<class F>
OutputIterator & swift::misc::Iterators::OutputIterator< F >::operator++ ( )
inline

Advance the iterator (no-op).

Definition at line 44 of file iterator.h.

◆ operator++() [2/2]

template<class F>
OutputIterator swift::misc::Iterators::OutputIterator< F >::operator++ ( int )
inline

Advance the iterator (no-op).

Definition at line 45 of file iterator.h.

◆ operator=() [1/2]

template<class F>
OutputIterator & swift::misc::Iterators::OutputIterator< F >::operator= ( const OutputIterator< F > & other)
inline

Copy assignment operator.

Definition at line 60 of file iterator.h.

◆ operator=() [2/2]

template<class F>
template<typename T>
requires (!std::is_convertible_v<T, OutputIterator>)
OutputIterator & swift::misc::Iterators::OutputIterator< F >::operator= ( T && value)
inline

Assignment operator performs the output.

Definition at line 53 of file iterator.h.


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