is there any ways of retrieving the number of elements in
typename X::value_type
where X is a vec of tuples?
thanks
is there any ways of retrieving the number of elements in
typename X::value_type
where X is a vec of tuples?
thanks
If your tuple is a boost.tuple:
boost::tuples::length<X::value_type>::value
For other tuple types, you'd use something similar, but it depends on the library it's from.