From 2506e4f963a716d834a4940cde97fed266bf647a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Mon, 15 Jul 2024 18:18:01 +0200 Subject: [PATCH] C++20 modernization: use std::map::contains() method --- mex/sources/libkorder/tl/t_container.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mex/sources/libkorder/tl/t_container.hh b/mex/sources/libkorder/tl/t_container.hh index 7f5f41b9a7..4a21c1c75a 100644 --- a/mex/sources/libkorder/tl/t_container.hh +++ b/mex/sources/libkorder/tl/t_container.hh @@ -1,6 +1,6 @@ /* * Copyright © 2004 Ondra Kamenik - * Copyright © 2019-2023 Dynare Team + * Copyright © 2019-2024 Dynare Team * * This file is part of Dynare. * @@ -165,8 +165,7 @@ public: check(const Symmetry& s) const { TL_RAISE_IF(s.num() != num(), "Incompatible symmetry lookup in TensorContainer::check"); - auto it = m.find(s); - return it != m.end(); + return m.contains(s); } virtual void -- GitLab