• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
test_member_swap()9 template < typename Graph > void test_member_swap()
10 {
11     Graph lhs, rhs;
12     lhs.swap(rhs);
13 }
14 
main()15 int main()
16 {
17     test_member_swap< boost::adjacency_list<> >();
18     test_member_swap< boost::directed_graph<> >();
19     test_member_swap< boost::undirected_graph<> >();
20 }
21