mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 03:57:36 +02:00
fixed wording to make it clear that I/O operators are only available for sequences in fusion's namespace
[SVN r73247]
This commit is contained in:
@ -1425,12 +1425,19 @@ operators for free.
|
|||||||
|
|
||||||
[section I/O]
|
[section I/O]
|
||||||
|
|
||||||
The I/O operators: `<<` and `>>` work generically on all Fusion sequences.
|
The I/O operators: `<<` and `>>` work generically on all Fusion
|
||||||
The global `operator<<` has been overloaded for generic output streams such
|
sequences. The I/O operators are overloaded in namespace `boost::fusion`
|
||||||
that __sequence__(s) are output by recursively calling `operator<<` for each
|
[footnote __sequences__ and __views__ residing in different namespaces
|
||||||
element. Analogously, the global `operator>>` has been overloaded to
|
will have to either provide their own I/O operators (possibly forwarding
|
||||||
extract __sequence__(s) from generic input streams by recursively calling
|
to fusion's I/O operators) or hoist fusion's I/O operators (using
|
||||||
`operator>>` for each element.
|
declaration), in their own namespaces for proper argument dependent
|
||||||
|
lookup.]
|
||||||
|
|
||||||
|
The `operator<<` has been overloaded for generic output streams such
|
||||||
|
that __sequence__(s) are output by recursively calling `operator<<` for
|
||||||
|
each element. Analogously, the global `operator>>` has been overloaded
|
||||||
|
to extract __sequence__(s) from generic input streams by recursively
|
||||||
|
calling `operator>>` for each element.
|
||||||
|
|
||||||
The default delimiter between the elements is space, and the __sequence__
|
The default delimiter between the elements is space, and the __sequence__
|
||||||
is enclosed in parenthesis. For Example:
|
is enclosed in parenthesis. For Example:
|
||||||
|
Reference in New Issue
Block a user