]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/example/map/make.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / example / map / make.cpp
CommitLineData
b32b8144 1// Copyright Louis Dionne 2013-2017
7c673cae
FG
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
5#include <boost/hana/assert.hpp>
6#include <boost/hana/core/make.hpp>
7#include <boost/hana/integral_constant.hpp>
8#include <boost/hana/map.hpp>
9#include <boost/hana/pair.hpp>
10#include <boost/hana/type.hpp>
11
12#include <string>
13namespace hana = boost::hana;
14using namespace std::literals;
15
16
17int main() {
18 BOOST_HANA_RUNTIME_CHECK(
19 hana::make_map(
20 hana::make_pair(hana::int_c<1>, "foobar"s),
21 hana::make_pair(hana::type_c<void>, 1234)
22 )
23 ==
24 hana::make<hana::map_tag>(
25 hana::make_pair(hana::int_c<1>, "foobar"s),
26 hana::make_pair(hana::type_c<void>, 1234)
27 )
28 );
29}