From 227749b9e40ba2c1af145a41cf85fe9cd1119589 Mon Sep 17 00:00:00 2001 From: stefiosif Date: Wed, 13 Jul 2022 23:04:59 +0300 Subject: [PATCH] Make reverse() return type auto --- graph/digraph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/digraph.h b/graph/digraph.h index 92ecaf2..bdf5769 100644 --- a/graph/digraph.h +++ b/graph/digraph.h @@ -16,7 +16,7 @@ public: Digraph(std::map> digraph); // Reverse graph directions - Digraph reverse(); + auto reverse(); }; template @@ -27,7 +27,7 @@ Digraph::Digraph(std::map> digraph) { } template -Digraph Digraph::reverse() { +auto Digraph::reverse() { std::map> revMatrix; for (const auto& v : Graph::adjMatrix) {