Skip to content
Snippets Groups Projects
Verified Commit 2506e4f9 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

C++20 modernization: use std::map::contains() method

parent 8fba6bfb
Branches
No related tags found
No related merge requests found
/*
* 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment