There are two methods for assigning individual element of an ntuple<>
Use member get< N >() (also at< N >()) to return a reference to the element at position N.
Since get< N > returns a reference this can be used to assign the element N (tuple.at< 1 > = 3.0).
Member at< N >() has exactly the same behaviour as get< N >().
Use member set< N >( new_value ) to assign new_value to element N.
ntuple< int, double, char > tuple( 1, 2.0, 'c' ); tuple.get< 0 >() = 2; tuple.at< 1 >() = 3.0; tuple.set< 2 >( 'd' ); std::cout << tuple << std::endl;
Test Result: gcc34 Passed, msvc80 Passed, msvc71 Passed
Output
(2,3,d)
Currently there is get< N >(), set< N >( value ) and at< N >(), but no at< N >( value ).
Possibilities: