Boost logo

Boost Users :

Subject: Re: [Boost-users] is this possible with tuples in c++0x ?
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2009-05-08 21:27:47

Germán Diago escribió:
> If this is possible, you could do (and it would be way more natural
> than get<3>(t)):
> tuple<int, float, float, string, mytype> t;
> t[3] = "hello";

You could achieve something similar in C++03 using placeholders. And
you'd use it like this

t[_3] = "hello";

Agustín K-ballo Bergé.-

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at