default-expression-evaluation0.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #include <boost/parameter.hpp>
  2. #include <iostream>
  3. BOOST_PARAMETER_NAME(graph)
  4. BOOST_PARAMETER_NAME(visitor)
  5. BOOST_PARAMETER_NAME(root_vertex)
  6. BOOST_PARAMETER_NAME(index_map)
  7. BOOST_PARAMETER_NAME(color_map)
  8. #include <boost/graph/depth_first_search.hpp> // for dfs_visitor
  9. BOOST_PARAMETER_FUNCTION((bool), depth_first_search, tag,
  10. (required
  11. (graph, *)
  12. (visitor, *)
  13. (root_vertex, *)
  14. (index_map, *)
  15. (color_map, *)
  16. )
  17. )
  18. {
  19. std::cout << "graph=" << graph;
  20. std::cout << std::endl;
  21. std::cout << "visitor=" << visitor;
  22. std::cout << std::endl;
  23. std::cout << "root_vertex=" << root_vertex;
  24. std::cout << std::endl;
  25. std::cout << "index_map=" << index_map;
  26. std::cout << std::endl;
  27. std::cout << "color_map=" << color_map;
  28. std::cout << std::endl;
  29. return true;
  30. }
  31. #include <boost/core/lightweight_test.hpp>
  32. int main()
  33. {
  34. char const* g = "1";
  35. depth_first_search(1, 2, 3, 4, 5);
  36. depth_first_search(
  37. g, '2', _color_map = '5'
  38. , _index_map = "4", _root_vertex = "3"
  39. );
  40. return boost::report_errors();
  41. }