|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75547 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2011-11-18 15:06:08
Author: jewillco
Date: 2011-11-18 15:06:07 EST (Fri, 18 Nov 2011)
New Revision: 75547
URL: http://svn.boost.org/trac/boost/changeset/75547
Log:
Added comparison operators; fixes #6137
Text files modified:
trunk/boost/graph/reverse_graph.hpp | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
Modified: trunk/boost/graph/reverse_graph.hpp
==============================================================================
--- trunk/boost/graph/reverse_graph.hpp (original)
+++ trunk/boost/graph/reverse_graph.hpp 2011-11-18 15:06:07 EST (Fri, 18 Nov 2011)
@@ -39,6 +39,18 @@
friend bool operator!=(const reverse_graph_edge_descriptor& a, const reverse_graph_edge_descriptor& b) {
return a.underlying_desc != b.underlying_desc;
}
+ friend bool operator<(const reverse_graph_edge_descriptor& a, const reverse_graph_edge_descriptor& b) {
+ return a.underlying_desc < b.underlying_desc;
+ }
+ friend bool operator>(const reverse_graph_edge_descriptor& a, const reverse_graph_edge_descriptor& b) {
+ return a.underlying_desc > b.underlying_desc;
+ }
+ friend bool operator<=(const reverse_graph_edge_descriptor& a, const reverse_graph_edge_descriptor& b) {
+ return a.underlying_desc <= b.underlying_desc;
+ }
+ friend bool operator>=(const reverse_graph_edge_descriptor& a, const reverse_graph_edge_descriptor& b) {
+ return a.underlying_desc >= b.underlying_desc;
+ }
};
template <typename EdgeDesc>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk