diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:10 +0300 |
commit | 1aeb9a455974457866f78722ad98114bafc84e8a (patch) | |
tree | e4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/include/boost-patched/graph/reverse_graph.hpp | |
parent | bd5ef432f5cfb1e18851381329d94665a4c22470 (diff) | |
download | ydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/include/boost-patched/graph/reverse_graph.hpp')
-rw-r--r-- | contrib/libs/hyperscan/include/boost-patched/graph/reverse_graph.hpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/contrib/libs/hyperscan/include/boost-patched/graph/reverse_graph.hpp b/contrib/libs/hyperscan/include/boost-patched/graph/reverse_graph.hpp index 8f98a1d5ff..e1333f2638 100644 --- a/contrib/libs/hyperscan/include/boost-patched/graph/reverse_graph.hpp +++ b/contrib/libs/hyperscan/include/boost-patched/graph/reverse_graph.hpp @@ -1,27 +1,27 @@ -#ifndef REVERSE_GRAPH_PATCHED_H_ -#define REVERSE_GRAPH_PATCHED_H_ - -#include <boost/version.hpp> - -#include <boost/graph/reverse_graph.hpp> - -#if defined(BOOST_REVGRAPH_PATCH) - -// Boost 1.62.0 does not implement degree() in reverse_graph which is required -// by BidirectionalGraph, so add it. - -namespace boost { - -template <class BidirectionalGraph, class GRef> -inline typename graph_traits<BidirectionalGraph>::degree_size_type -degree(const typename graph_traits<BidirectionalGraph>::vertex_descriptor u, - const reverse_graph<BidirectionalGraph,GRef>& g) -{ - return degree(u, g.m_g); -} - -} // namespace boost - -#endif // Boost 1.62.0 - -#endif +#ifndef REVERSE_GRAPH_PATCHED_H_ +#define REVERSE_GRAPH_PATCHED_H_ + +#include <boost/version.hpp> + +#include <boost/graph/reverse_graph.hpp> + +#if defined(BOOST_REVGRAPH_PATCH) + +// Boost 1.62.0 does not implement degree() in reverse_graph which is required +// by BidirectionalGraph, so add it. + +namespace boost { + +template <class BidirectionalGraph, class GRef> +inline typename graph_traits<BidirectionalGraph>::degree_size_type +degree(const typename graph_traits<BidirectionalGraph>::vertex_descriptor u, + const reverse_graph<BidirectionalGraph,GRef>& g) +{ + return degree(u, g.m_g); +} + +} // namespace boost + +#endif // Boost 1.62.0 + +#endif |