From 03788f48be2634c36cd19ba25b0a851685b9c877 Mon Sep 17 00:00:00 2001 From: MZuenni Date: Wed, 30 Nov 2022 12:43:27 +0100 Subject: use all macro --- graph/bitonicTSP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graph/bitonicTSP.cpp') diff --git a/graph/bitonicTSP.cpp b/graph/bitonicTSP.cpp index 767bc5b..3dea828 100644 --- a/graph/bitonicTSP.cpp +++ b/graph/bitonicTSP.cpp @@ -25,7 +25,7 @@ void bitonicTSP() { } } while(n = j + 1, j > 0); (lt.back() == 1 ? lt : ut).push_back(0); - reverse(lt.begin(), lt.end()); - lt.insert(lt.end(), ut.begin(), ut.end()); + reverse(all(lt)); + lt.insert(lt.end(), all(ut)); //return lt;// Enthält Knoten 0 zweimal. An erster und letzter Position. } \ No newline at end of file -- cgit v1.2.3