mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use structured bindings in some places:
Most of the new uses either: * Replace some uses of `tie` * bind to pairs when iterating through maps
This commit is contained in:
@@ -142,8 +142,8 @@ results::print(S& s)
|
||||
if (top.size() > 0)
|
||||
{
|
||||
s << "Longest suite times:\n";
|
||||
for (auto const& i : top)
|
||||
s << std::setw(8) << fmtdur(i.second) << " " << i.first << '\n';
|
||||
for (auto const& [name, dur] : top)
|
||||
s << std::setw(8) << fmtdur(dur) << " " << name << '\n';
|
||||
}
|
||||
|
||||
auto const elapsed = clock_type::now() - start;
|
||||
|
||||
Reference in New Issue
Block a user