include_ext.cpp 477 B

12345678910111213141516
  1. // Copyright Louis Dionne 2013-2017
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  4. //! [main]
  5. #include <boost/hana/ext/std/tuple.hpp>
  6. #include <boost/hana/front.hpp>
  7. #include <tuple> // still required to create a tuple
  8. namespace hana = boost::hana;
  9. int main() {
  10. constexpr std::tuple<int, char, float> xs{1, '2', 3.0f};
  11. static_assert(hana::front(xs) == 1, "");
  12. }
  13. //! [main]