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 cc4c398 commit 9620d89Copy full SHA for 9620d89
snippets/c_api/iterate_events.cc
@@ -132,7 +132,8 @@ processed on the Python side as lists of pairs while converting them to dicts.
132
*/
133
std::vector<char const *> getPairs(std::map<std::string, std::string> const & eventPairs)
134
{
135
- std::vector<char const *> pairs(eventPairs.size() * 2);
+ std::vector<char const *> pairs;
136
+ pairs.reserve(eventPairs.size() * 2);
137
138
for (auto const & kp : eventPairs)
139
0 commit comments