//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template class tuple; // template // InputIterator begin(const tuple& t); // template // InputIterator end(const tuple& t); #include #include #include int main() { { typedef std::tuple T; int array[5] = {0, 1, 2, 3, 4}; const T t(std::begin(array), std::end(array)); assert(begin(t) == std::begin(array)); assert(end(t) == std::end(array)); } }