]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/graph/test/swap.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / graph / test / swap.cpp
CommitLineData
7c673cae
FG
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
f67539c2 9template < typename Graph > void test_member_swap()
7c673cae 10{
f67539c2
TL
11 Graph lhs, rhs;
12 lhs.swap(rhs);
7c673cae
FG
13}
14
15int main()
16{
f67539c2
TL
17 test_member_swap< boost::adjacency_list<> >();
18 test_member_swap< boost::directed_graph<> >();
19 test_member_swap< boost::undirected_graph<> >();
7c673cae 20}