chore: Use std::ranges where possible (#7634)

This commit is contained in:
Ayaz Salikhov
2026-06-30 12:03:19 +01:00
committed by GitHub
parent 95d53b4d43
commit 8abbd1ba3a
18 changed files with 64 additions and 93 deletions

View File

@@ -140,7 +140,7 @@ private:
combineArg(std::vector<Arg>& dest, std::vector<Arg> const& src, Args const&... args)
{
assert(dest.capacity() >= dest.size() + src.size());
std::copy(src.begin(), src.end(), std::back_inserter(dest));
std::ranges::copy(src, std::back_inserter(dest));
if constexpr (sizeof...(args) > 0)
combineArg(dest, args...);
}