vector_graph_cc.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. //=======================================================================
  2. // Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
  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. #include <boost/config.hpp>
  10. #include <boost/concept/assert.hpp>
  11. #include <vector>
  12. #include <list>
  13. // THIS FILE MUST PRECEDE ALL OTHER BOOST GRAPH FILES
  14. // Due to ADL nastiness involving the vertices() function
  15. #include <boost/graph/vector_as_graph.hpp>
  16. // THIS FILE MUST PRECEDE ALL OTHER BOOST GRAPH FILES
  17. #include <boost/graph/graph_concepts.hpp>
  18. #include <boost/graph/graph_archetypes.hpp>
  19. int main(int,char*[])
  20. {
  21. using namespace boost;
  22. // Check "vector as graph"
  23. {
  24. typedef std::vector< std::list<int> > Graph;
  25. BOOST_CONCEPT_ASSERT(( VertexListGraphConcept<Graph> ));
  26. BOOST_CONCEPT_ASSERT(( IncidenceGraphConcept<Graph> ));
  27. BOOST_CONCEPT_ASSERT(( AdjacencyGraphConcept<Graph> ));
  28. }
  29. return 0;
  30. }