]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/test/swap.cpp
1 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/metaparse/v1/swap.hpp>
8 #include <boost/type_traits/is_same.hpp>
10 #include <boost/mpl/assert.hpp>
12 #include "test_case.hpp"
18 typedef returns_first type
;
20 template <class A
, class>
29 typedef returns_second type
;
31 template <class, class B
>
39 BOOST_METAPARSE_TEST_CASE(swap
)
41 using boost::metaparse::v1::swap
;
45 is_same
<double, swap
<returns_first
>::apply
<int, double>::type
>
49 is_same
<int, swap
<returns_second
>::apply
<int, double>::type
>