Loading...
Searching...
No Matches
load_chunk.h
Go to the documentation of this file.
#ifndef _RHEOLEF_LOAD_CHUNK_H
#define _RHEOLEF_LOAD_CHUNK_H
namespace rheolef {
template <class RandomIterator>
inline
bool
load_chunk (std::istream& s, RandomIterator iter, RandomIterator last)
{
while (iter != last)
if (!(s >> *iter++)) return false;
return s.good();
}
template <class RandomIterator, class GetFunction>
inline
bool
load_chunk (std::istream& s, RandomIterator iter, RandomIterator last, GetFunction get_element)
{
while (iter != last)
if (! get_element (s, *iter++)) return false;
return s.good();
}
} // namespace rheolef
#endif // _RHEOLEF_LOAD_CHUNK_H
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
rheolef::load_chunk
bool load_chunk(std::istream &s, RandomIterator iter, RandomIterator last)
Definition load_chunk.h:27