]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/graph/test/filter_graph_vp_test.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / 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
4 //
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 //=======================================================================
9
10 #include <boost/graph/filtered_graph.hpp>
11 #include <boost/graph/adjacency_list.hpp>
12 using namespace boost;
13
14 // Check to make you can apply a vertex filter with the
15 // make_filtered_graph function, to fix bug #480175.
16
17 struct NotMuchOfAFilter
18 {
19 template<class Vertex> bool operator()(Vertex key)
20 const { return true; }
21 };
22
23 int main()
24 {
25 adjacency_list<> graph;
26 make_filtered_graph(graph, keep_all(), NotMuchOfAFilter());
27 }