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 5 #include <boost/hana/integral_constant.hpp> 6 #include <boost/hana/map.hpp> 7 #include <boost/hana/pair.hpp> 8 9 #include <memory> 10 namespace hana = boost::hana; 11 12 main()13int main() { 14 auto map = hana::make_map( 15 hana::make_pair(hana::int_c<0>, 123), 16 hana::make_pair(hana::int_c<1>, 456) 17 ); 18 19 std::unique_ptr<decltype(map)> p1{}, p2{}; 20 using std::swap; 21 swap(p1, p2); 22 } 23