[TUPLE] n for an n-tuple

24 Jun
2010
24 Jun
'10
11:33 a.m.
Dear all, Given an n-tuple t, is there any way to acquire n from t itself? I mean something like: tuple<int, float> t; size_t n = t.size();//n == 2 TIA, --Hossein

24 Jun
24 Jun
1:50 p.m.
AMDG Hossein Haeri wrote:
Given an n-tuple t, is there any way to acquire n from t itself? I mean something like:
tuple<int, float> t; size_t n = t.size();//n == 2
boost::tuples::length<tuple<int, float> >::value or boost::fusion::size(t); (with the appropriate fusion headers) In Christ, Steven Watanabe
5464
Age (days ago)
5464
Last active (days ago)
1 comments
2 participants
participants (2)
-
Hossein Haeri
-
Steven Watanabe