Helper Function ntuple_()

ntuple<>'s can be created by calling the helper function ntuple_(). This template function can take from 1 to 8 arguments and returns an ntuple<> that has elements that are copies of each argument.

int i = 3, j = 4;

std::cout << ntuple_( i, j ) << std::endl;

ntuple< int , int > x = ntuple_( 1, 2 );

std::cout << x << " - " << ntuple_( i, j ) << std::endl;

CHECK( x == ntuple_( 1, 2 ) );

Test Result: gcc34 Passed, msvc80 Passed, msvc71 Passed

Output

(3,4)
(1,2) - (3,4)