]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/parameter/test/literate/default-expression-evaluation0.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / parameter / test / literate / default-expression-evaluation0.cpp
1
2 #include <boost/parameter.hpp>
3 #include <iostream>
4
5 BOOST_PARAMETER_NAME(graph)
6 BOOST_PARAMETER_NAME(visitor)
7 BOOST_PARAMETER_NAME(root_vertex)
8 BOOST_PARAMETER_NAME(index_map)
9 BOOST_PARAMETER_NAME(color_map)
10 #include <boost/graph/depth_first_search.hpp> // for dfs_visitor
11
12 BOOST_PARAMETER_FUNCTION(
13 (void), depth_first_search, tag
14
15 , (required
16 (graph, *)
17 (visitor, *)
18 (root_vertex, *)
19 (index_map, *)
20 (color_map, *)
21 )
22
23 )
24 {
25 std::cout << "graph=" << graph << std::endl;
26 std::cout << "visitor=" << visitor << std::endl;
27 std::cout << "root_vertex=" << root_vertex << std::endl;
28 std::cout << "index_map=" << index_map << std::endl;
29 std::cout << "color_map=" << color_map << std::endl;
30 }
31
32 int main()
33 {
34 depth_first_search(1, 2, 3, 4, 5);
35
36 depth_first_search(
37 "1", '2', _color_map = '5',
38 _index_map = "4", _root_vertex = "3");
39 }