blob: fc711b242753d7861f3aaa32ee3aae24969f85bf [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001//===----------------------------------------------------------------------===//
2//
Howard Hinnant5b08a8a2010-05-11 21:36:01 +00003// The LLVM Compiler Infrastructure
Howard Hinnant3e519522010-05-11 19:42:16 +00004//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// <tuple>
11
12// template <class... Types> class tuple;
13
14// template <class InputIterator>
15// InputIterator begin(const tuple<InputIterator, InputIterator>& t);
16
17// template <class InputIterator>
18// InputIterator end(const tuple<InputIterator, InputIterator>& t);
19
20#include <tuple>
21#include <iterator>
22#include <cassert>
23
24int main()
25{
26 {
27 typedef std::tuple<int*, int*> T;
28 int array[5] = {0, 1, 2, 3, 4};
29 const T t(std::begin(array), std::end(array));
30 assert(begin(t) == std::begin(array));
31 assert(end(t) == std::end(array));
32 }
33}