]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/graph/include/boost/graph/graph_selectors.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / graph / include / boost / graph / graph_selectors.hpp
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 //=======================================================================
9
10 #ifndef BOOST_GRAPH_SELECTORS_HPP
11 #define BOOST_GRAPH_SELECTORS_HPP
12
13 #include <boost/mpl/bool.hpp>
14
15 namespace boost {
16
17 //===========================================================================
18 // Selectors for the Directed template parameter of adjacency_list
19 // and adjacency_matrix.
20
21 struct directedS { enum { is_directed = true, is_bidir = false };
22 typedef mpl::true_ is_directed_t;
23 typedef mpl::false_ is_bidir_t;
24 };
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;
29 };
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;
34 };
35
36 } // namespace boost
37
38 #endif // BOOST_GRAPH_SELECTORS_HPP