]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/graph/test/stanford_graph_cc.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / graph / test / stanford_graph_cc.cpp
CommitLineData
7c673cae
FG
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//=======================================================================
92f5a8d4
TL
9
10#include <boost/config.hpp>
11
12#ifdef BOOST_MSVC
13// Without disabling this we get hard errors about initialialized pointers:
14#pragma warning(disable:4703)
15#endif
16
7c673cae
FG
17#include <boost/graph/graph_concepts.hpp>
18#include <boost/graph/graph_archetypes.hpp>
19#include <boost/graph/stanford_graph.hpp>
20#include <boost/concept/assert.hpp>
21
22int main(int,char*[])
23{
24 using namespace boost;
25 // Check Stanford GraphBase Graph
26 {
27 typedef Graph* Graph;
28 typedef graph_traits<Graph>::vertex_descriptor Vertex;
29 typedef graph_traits<Graph>::edge_descriptor Edge;
30 BOOST_CONCEPT_ASSERT(( VertexListGraphConcept<Graph> ));
31 BOOST_CONCEPT_ASSERT(( IncidenceGraphConcept<Graph> ));
32 BOOST_CONCEPT_ASSERT(( AdjacencyGraphConcept<Graph> ));
33 BOOST_CONCEPT_ASSERT(( PropertyGraphConcept<Graph, Edge, edge_length_t > ));
34 BOOST_CONCEPT_ASSERT((
35 PropertyGraphConcept<Graph, Vertex, u_property<Vertex> > ));
36 BOOST_CONCEPT_ASSERT((
37 PropertyGraphConcept<Graph, Edge, a_property<Vertex> > ));
38 }
39 {
40 typedef const Graph* Graph;
41 typedef graph_traits<Graph>::vertex_descriptor Vertex;
42 typedef graph_traits<Graph>::edge_descriptor Edge;
43 BOOST_CONCEPT_ASSERT(( VertexListGraphConcept<Graph> ));
44 BOOST_CONCEPT_ASSERT(( IncidenceGraphConcept<Graph> ));
45 BOOST_CONCEPT_ASSERT(( AdjacencyGraphConcept<Graph> ));
46 BOOST_CONCEPT_ASSERT((
47 ReadablePropertyGraphConcept<Graph, Edge, edge_length_t > ));
48 BOOST_CONCEPT_ASSERT((
49 ReadablePropertyGraphConcept<Graph, Vertex, u_property<Vertex> > ));
50 BOOST_CONCEPT_ASSERT((
51 ReadablePropertyGraphConcept<Graph, Edge, a_property<Vertex> > ));
52 }
53 return 0;
54}