leda-concept-check.cpp 838 B

12345678910111213141516171819202122
  1. //=======================================================================
  2. // Copyright 2001 Jeremy G. Siek, Andrew Lumsdaine, Lie-Quan Lee,
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See
  5. // accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //=======================================================================
  8. #include <boost/graph/graph_concepts.hpp>
  9. #include <boost/graph/leda_graph.hpp>
  10. #include <boost/concept/assert.hpp>
  11. int
  12. main()
  13. {
  14. using namespace boost;
  15. typedef leda::GRAPH<int, int> Graph;
  16. BOOST_CONCEPT_ASSERT(( VertexListGraphConcept<Graph> ));
  17. BOOST_CONCEPT_ASSERT(( BidirectionalGraphConcept< Graph> ));
  18. BOOST_CONCEPT_ASSERT(( VertexMutableGraphConcept< Graph> ));
  19. BOOST_CONCEPT_ASSERT(( EdgeMutableGraphConcept<Graph> ));
  20. return EXIT_SUCCESS;
  21. }