[C++/en] Tuples in C++

This commit is contained in:
Jaskamal Kainth 2016-01-28 15:26:35 +05:30
parent 32f18cd992
commit c805148618

View File

@ -966,11 +966,10 @@ v.swap(vector<Foo>());
// its elements are accessed by their order in the tuple.
// We start with constructing a tuple.
//
// Packing values into tuple
auto first = make_tuple( 10 , 'A' ) ;
const int maxN = 1e9;
int maxL = 15;
const int maxL = 15;
auto second = make_tuple( maxN , maxL ) ;
// printing elements of 'first' tuple