]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/parameter/test/literate/handling-out-parameters0.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / parameter / test / literate / handling-out-parameters0.cpp
1
2 #include <boost/parameter.hpp>
3
4 namespace boost
5 {
6 int vertex_index = 0;
7
8 template <class T = int>
9 struct dfs_visitor
10 {};
11 }
12
13 BOOST_PARAMETER_NAME(graph)
14
15 BOOST_PARAMETER_NAME(visitor)
16 BOOST_PARAMETER_NAME(root_vertex)
17 BOOST_PARAMETER_NAME(index_map)
18 BOOST_PARAMETER_NAME(color_map)
19
20 BOOST_PARAMETER_FUNCTION((void), f, tag,
21 (required (graph, *))
22 (optional
23 (visitor, *, boost::dfs_visitor<>())
24 (root_vertex, *, *vertices(graph).first)
25 (index_map, *, get(boost::vertex_index,graph))
26 (in_out(color_map), *,
27 default_color_map(num_vertices(graph), index_map) )
28 )
29 ) {}
30