ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since cf68d04 was
cf68d04,
checked in by Peter A. Buhr <pabuhr@…>, 7 years ago
|
restructure theses documents
|
-
Property mode set to
100644
|
File size:
264 bytes
|
Rev | Line | |
---|
[9c14ae9] | 1 | #include <iostream> |
---|
| 2 | #include <tuple> |
---|
| 3 | using namespace std; |
---|
| 4 | |
---|
| 5 | int 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.