]>
Commit | Line | Data |
---|---|---|
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 | 9 | template < typename Graph > void test_member_swap() |
7c673cae | 10 | { |
f67539c2 TL |
11 | Graph lhs, rhs; |
12 | lhs.swap(rhs); | |
7c673cae FG |
13 | } |
14 | ||
15 | int 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 | } |