]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/graph/test/filter_graph_vp_test.cpp
1 //=======================================================================
2 // Copyright 2002 Indiana University.
3 // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //=======================================================================
10 #include <boost/graph/filtered_graph.hpp>
11 #include <boost/graph/adjacency_list.hpp>
12 using namespace boost
;
14 // Check to make you can apply a vertex filter with the
15 // make_filtered_graph function, to fix bug #480175.
17 struct NotMuchOfAFilter
19 template<class Vertex
> bool operator()(Vertex key
)
20 const { return true; }
25 adjacency_list
<> graph
;
26 make_filtered_graph(graph
, keep_all(), NotMuchOfAFilter());