#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) |
TODO:
Definition in file IterableFromIterator.h.
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!
Definition at line 61 of file IterableFromIterator.inl.