source: doc/rob_thesis/examples/intro/tuple.cc@ a28bc02

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since a28bc02 was 9c14ae9, checked in by Rob Schluntz <rschlunt@…>, 9 years ago

add thesis source

  • Property mode set to 100644
File size: 264 bytes
Line 
1#include <iostream>
2#include <tuple>
3using namespace std;
4
5int main() {
6 tuple<int, int, int> triple(10, 20, 30);
7 cout << get<1>(triple) << endl;
8 tuple_element<2, tuple<int, float, double>>::type x = 3.14;
9 cout << tuple_size<decltype(triple)>::value << endl;
10}
Note: See TracBrowser for help on using the repository browser.