mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[C++/en] Tuples in C++
This commit is contained in:
parent
32f18cd992
commit
c805148618
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user