From a687398e6241be4a95502dd049d64673522cb1ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Mon, 22 Jul 2024 12:21:35 +0200
Subject: [PATCH] C++20 modernization: use std::ranges::is_sorted

---
 mex/sources/libkorder/tl/int_sequence.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mex/sources/libkorder/tl/int_sequence.cc b/mex/sources/libkorder/tl/int_sequence.cc
index 09d6435add..32a0736340 100644
--- a/mex/sources/libkorder/tl/int_sequence.cc
+++ b/mex/sources/libkorder/tl/int_sequence.cc
@@ -231,7 +231,7 @@ IntSequence::isConstant() const
 bool
 IntSequence::isSorted() const
 {
-  return std::is_sorted(data, data + length);
+  return std::ranges::is_sorted(data, data + length);
 }
 
 /* Debug print. */
-- 
GitLab