]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/graph/test/swap.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / graph / test / swap.cpp
1 // Copyright (C) Ben Pope 2014.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/graph/directed_graph.hpp>
7 #include <boost/graph/undirected_graph.hpp>
8
9 template<typename Graph>
10 void test_member_swap()
11 {
12 Graph lhs, rhs;
13 lhs.swap(rhs);
14 }
15
16 int main()
17 {
18 test_member_swap<boost::adjacency_list<> >();
19 test_member_swap<boost::directed_graph<> >();
20 test_member_swap<boost::undirected_graph<> >();
21 }