...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Write a Sequence to an output stream.
template <typename OStream, typename Sequence> OStream& operator<<(OStream& os, Sequence& seq);
Parameter |
Requirement |
Description |
---|---|---|
os |
An output stream. |
Stream to write information to. |
seq |
A Sequence. |
The sequence to write. |
os << seq
Return type: OStream&
Semantics: For each element, e
, in sequence, seq
,
call os <<
e
.
#include <boost/fusion/sequence/io/out.hpp> #include <boost/fusion/include/out.hpp>
std::cout << make_vector
(123, "Hello", 'x') << std::endl;