/*************************************************************************** * tests/common/test_tuple.cpp * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2013 Timo Bingmann * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) **************************************************************************/ #include #include #include #include using stxxl::uint40; using stxxl::uint64; // force instantiation of some tuple types template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; // force instantiation of more tuple types template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; // force instantiation of even more tuple types template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; template struct stxxl::tuple; void test1() { stxxl::tuple pair; pair.first = 5; pair.second = 42; std::ostringstream oss1; oss1 << pair; STXXL_CHECK(oss1.str() == "(5,42)"); pair = stxxl::tuple(1, 2); std::ostringstream oss2; oss2 << pair; STXXL_CHECK(oss2.str() == "(1,2)"); } int main(int, char**) { test1(); return 0; }