MCPcopy Create free account
hub / github.com/apache/impala / AppendToImpl

Function AppendToImpl

be/src/gutil/strings/split.cc:126–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124// - unordered_map<string, string> - to change append semantics
125template <typename Container, typename Splitter>
126void AppendToImpl(Container* container, Splitter splitter) {
127 Container c = splitter; // Calls implicit conversion operator.
128 std::copy(c.begin(), c.end(), std::inserter(*container, container->end()));
129}
130
131// Overload of AppendToImpl() that is optimized for appending to vector<string>.
132// This version eliminates a couple string copies by using a vector<StringPiece>

Callers 1

AppendToFunction · 0.85

Calls 6

AppendToMapFunction · 0.85
resizeMethod · 0.80
CopyToStringMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected