We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfc717 commit c30e3fdCopy full SHA for c30e3fd
src/odb/src/3dblox/checker.cpp
@@ -1,11 +1,15 @@
1
#include "checker.h"
2
3
+#include <algorithm>
4
#include <cstddef>
5
#include <functional>
6
#include <map>
7
+#include <string>
8
+#include <utility>
9
#include <vector>
10
11
#include "odb/db.h"
12
+#include "odb/geom.h"
13
#include "utl/Logger.h"
14
15
namespace odb {
@@ -89,8 +93,9 @@ void Checker::checkFloatingChips(odb::dbChip* chip,
89
93
if (sets.size() > 1) {
90
94
// Convert to vector and sort by size
91
95
std::vector<std::vector<dbChipInst*>> insts_sets;
96
+ insts_sets.reserve(sets.size());
92
97
for (auto& [root, chips] : sets) {
- insts_sets.push_back(chips);
98
+ insts_sets.emplace_back(chips);
99
}
100
101
std::sort(
0 commit comments