#include "Stroika/Foundation/StroikaPreComp.h"
#include "Stroika/Foundation/Streams/InputStream.h"
#include "Stroika/Foundation/Traversal/Iterable.h"
#include "IterableToInputStream.inl"
Go to the source code of this file.
Namespaces | |
namespace | Stroika::Foundation |
Functions | |
template<typename ELEMENT_TYPE > | |
auto | Stroika::Foundation::Streams::IterableToInputStream::New (const Traversal::Iterable< ELEMENT_TYPE > &it) -> Ptr< ELEMENT_TYPE > |
Definition in file IterableToInputStream.h.
auto Stroika::Foundation::Streams::IterableToInputStream::New | ( | const Traversal::Iterable< ELEMENT_TYPE > & | it | ) | -> Ptr<ELEMENT_TYPE> |
Sometimes, convenient to take an object which is Iterable, and treat it as an InputStream<> (similar but not identical concepts).
For example, this can be used to treat a String as an InputStream<Character>.
Definition at line 14 of file IterableToInputStream.inl.