|
Boost : |
From: Jaakko Järvi (jaakko.jarvi_at_[hidden])
Date: 2000-03-13 02:14:57
kevin atkinson <kevinat-_at_[hidden]> wrote:
original article:http://www.egroups.com/group/boost/?start=2541
>
> I assume your tie will work with the standard library pair....
>
Yes, for example:
pair<string, int> foo() { return make_pair(string("Number"), 1); }
...
string s; int i;
tie(s, i) = foo()
cout << s << " " << i;
outputs: Number 1
/Jaakko Järvi
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk