Boost logo

Boost :

From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2001-06-18 18:24:34


Hi,

[John Max Skaller]
Let T be a tuple type.
What is the name of the type of the n'th element?

[Gary]
It's not address' able by name per se. Instead use either the access
function or the member function to get the nth item.

get<n>(tuple<>), or

tuple<> tu;

tu.get<n>();

(It will be a cons<HT,TT>.head but it's a nest of these cons<>.)

  Yours,
 -gary-

gary.powell_at_[hidden]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk