mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-25 16:10:57 +00:00
chore: Use std::ranges where possible (#7634)
This commit is contained in:
@@ -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...);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user