• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
14 // THIS FILE MUST PRECEDE ALL OTHER BOOST GRAPH FILES
15 // Due to ADL nastiness involving the vertices() function
16 #include <boost/graph/vector_as_graph.hpp>
17 // THIS FILE MUST PRECEDE ALL OTHER BOOST GRAPH FILES
18 
19 #include <boost/graph/graph_concepts.hpp>
20 #include <boost/graph/graph_archetypes.hpp>
21 
main(int,char * [])22 int main(int, char*[])
23 {
24     using namespace boost;
25     // Check "vector as graph"
26     {
27         typedef std::vector< std::list< int > > Graph;
28         BOOST_CONCEPT_ASSERT((VertexListGraphConcept< Graph >));
29         BOOST_CONCEPT_ASSERT((IncidenceGraphConcept< Graph >));
30         BOOST_CONCEPT_ASSERT((AdjacencyGraphConcept< Graph >));
31     }
32     return 0;
33 }
34