fix doc example typo
[boost.git] / boost / graph / graph_selectors.hpp
blob777ebefc94e8efa5cf182158ff4015abbc2a56bf
1 //=======================================================================
2 // Copyright 2002 Indiana University.
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 //=======================================================================
10 #ifndef BOOST_GRAPH_SELECTORS_HPP
11 #define BOOST_GRAPH_SELECTORS_HPP
13 #include <boost/mpl/bool.hpp>
15 namespace boost {
17 //===========================================================================
18 // Selectors for the Directed template parameter of adjacency_list
19 // and adjacency_matrix.
21 struct directedS { enum { is_directed = true, is_bidir = false };
22 typedef mpl::true_ is_directed_t;
23 typedef mpl::false_ is_bidir_t;
25 struct undirectedS {
26 enum { is_directed = false, is_bidir = false };
27 typedef mpl::false_ is_directed_t;
28 typedef mpl::false_ is_bidir_t;
30 struct bidirectionalS {
31 enum { is_directed = true, is_bidir = true };
32 typedef mpl::true_ is_directed_t;
33 typedef mpl::true_ is_bidir_t;
36 } // namespace boost
38 #endif // BOOST_GRAPH_SELECTORS_HPP