Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/graph/detail/edge.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
9 //======================================================================= | 9 //======================================================================= |
10 | 10 |
11 #ifndef BOOST_GRAPH_DETAIL_EDGE_HPP | 11 #ifndef BOOST_GRAPH_DETAIL_EDGE_HPP |
12 #define BOOST_GRAPH_DETAIL_EDGE_HPP | 12 #define BOOST_GRAPH_DETAIL_EDGE_HPP |
13 | 13 |
14 #if __GNUC__ < 3 | |
15 #include <iostream> | |
16 #else | |
17 #include <iosfwd> | 14 #include <iosfwd> |
18 #endif | |
19 | 15 |
20 namespace boost { | 16 namespace boost { |
21 | 17 |
22 namespace detail { | 18 namespace detail { |
23 | 19 |
98 } //namespace detail | 94 } //namespace detail |
99 | 95 |
100 } // namespace boost | 96 } // namespace boost |
101 | 97 |
102 namespace std { | 98 namespace std { |
103 | |
104 #if __GNUC__ < 3 | |
105 template <class D, class V> | |
106 std::ostream& | |
107 operator<<(std::ostream& os, const boost::detail::edge_desc_impl<D,V>& e) | |
108 { | |
109 return os << "(" << e.m_source << "," << e.m_target << ")"; | |
110 } | |
111 #else | |
112 template <class Char, class Traits, class D, class V> | 99 template <class Char, class Traits, class D, class V> |
113 std::basic_ostream<Char, Traits>& | 100 std::basic_ostream<Char, Traits>& |
114 operator<<(std::basic_ostream<Char, Traits>& os, | 101 operator<<(std::basic_ostream<Char, Traits>& os, |
115 const boost::detail::edge_desc_impl<D,V>& e) | 102 const boost::detail::edge_desc_impl<D,V>& e) |
116 { | 103 { |
117 return os << "(" << e.m_source << "," << e.m_target << ")"; | 104 return os << "(" << e.m_source << "," << e.m_target << ")"; |
118 } | 105 } |
119 #endif | 106 } |
120 | 107 |
108 // Boost's functional/hash | |
109 namespace boost { | |
110 template<typename D, typename V> | |
111 struct hash<boost::detail::edge_desc_impl<D, V> > | |
112 { | |
113 std::size_t operator()(const boost::detail::edge_desc_impl<D, V> & x) const | |
114 { return hash_value(x.get_property()); } | |
115 }; | |
121 } | 116 } |
122 | 117 |
123 | 118 |
124 #endif // BOOST_GRAPH_DETAIL_DETAIL_EDGE_HPP | 119 #endif // BOOST_GRAPH_DETAIL_DETAIL_EDGE_HPP |