...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Read a Sequence from an input stream.
template <typename IStream, typename Sequence> IStream& operator>>(IStream& is, Sequence& seq);
Parameter |
Requirement |
Description |
---|---|---|
is |
An input stream. |
Stream to extract information from. |
seq |
A Sequence. |
The sequence to read. |
is >> seq
Return type: IStream&
Semantics: For each element, e
, in sequence, seq
,
call is >>
e
.
#include <boost/fusion/sequence/io/in.hpp> #include <boost/fusion/include/in.hpp>
vector
<int, std::string, char> v;
std::cin >> v;