• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015-2017 Hans Dembinski
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
6 
7 #include <boost/core/lightweight_test.hpp>
8 #include <boost/histogram/detail/tuple_slice.hpp>
9 #include <tuple>
10 #include "std_ostream.hpp"
11 
12 using namespace boost::histogram::detail;
13 
main()14 int main() {
15 
16   auto a = std::make_tuple(1, 2, 3, 4);
17   const auto b = tuple_slice<1, 2>(a);
18   BOOST_TEST_EQ(b, std::make_tuple(2, 3));
19 
20   return boost::report_errors();
21 }
22