Extracting Elements

There are two methods for extracting individual element of an ntuple<>

ntuple< int, double, char, bool >  idcb( 1, 2.0, 'c', false );

char c;
bool b;
std::cout << ( c = idcb.get< 2 >() ) << ',';
std::cout << std::boolalpha << ( b = idcb.at< 3 >() ) << std::endl;

int i;
double d;

idcb >> i >> d;

CHECK( i = 1 && d == 2.0 && c == 'c' && !b );

Test Result: gcc34 Passed, msvc80 Passed, msvc71 Passed

Output

c,false

More on Extracting Elements ...