This commit is contained in:
Joel de Guzman 2014-04-09 10:03:23 +08:00
parent 41e18be5cf
commit 6c904779af

View File

@ -1007,11 +1007,11 @@ Example:
int i; char c; double d;
...
__vector_tie__(i, c, a);
__vector_tie__(i, c, d);
The __vector_tie__ function creates a __vector__ of type
`__vector__<int&, char&, double&>`. The same result could be achieved with the call
__make_vector__(__boost_ref_call__(i), __boost_ref_call__(c), __boost_ref_call__(a))
__make_vector__(__boost_ref_call__(i), __boost_ref_call__(c), __boost_ref_call__(d))
[footnote see __boost_ref__ for details about `ref`].
A /tie/ can be used to 'unpack' another tuple into variables. E.g.: