Stroika Library 3.0d18
 
Loading...
Searching...
No Matches
IterableFromIterator.h File Reference
#include "Stroika/Foundation/StroikaPreComp.h"
#include "Stroika/Foundation/Common/Common.h"
#include "Stroika/Foundation/Memory/SharedByValue.h"
#include "Stroika/Foundation/Traversal/DelegatedIterator.h"
#include "Stroika/Foundation/Traversal/Iterable.h"
#include "Stroika/Foundation/Traversal/Iterator.h"
#include "IterableFromIterator.inl"

Go to the source code of this file.

Classes

class  Stroika::Foundation::Traversal::IterableFromIterator< T, NEW_ITERATOR_REP_TYPE, CONTEXT_FOR_EACH_ITERATOR >
 

Namespaces

namespace  Stroika::Foundation
 

Functions

template<typename T >
Iterable< T > Stroika::Foundation::Traversal::MakeIterableFromIterator (const Iterator< T > &iterator)
 

Detailed Description

TODO:

Definition in file IterableFromIterator.h.

Function Documentation

◆ MakeIterableFromIterator()

template<typename T >
Iterable< T > Stroika::Foundation::Traversal::MakeIterableFromIterator ( const Iterator< T > &  iterator)

This makes a copy of the given iterator, and wraps it in an iterable. That iterable then makes additional copies of that (argument) iterator as needed.

Important Note The original Iterator<T> will have lifetime == the constructed Iterable<> - so be careful - that the thing the Iterator<T> came from has long enough lifetime!

See also
IterableFromIterator

Definition at line 61 of file IterableFromIterator.inl.