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

Function AppendTo

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

Source from the content-addressed store, hash-verified

193//
194template <typename Container, typename Splitter>
195void AppendTo(Container* container, Splitter splitter) {
196 if (container->empty()) {
197 // "Appending" to an empty container is by far the common case. For this we
198 // assign directly to the output container, which is more efficient than
199 // explicitly appending.
200 *container = splitter; // Calls implicit conversion operator.
201 } else {
202 AppendToImpl(container, splitter);
203 }
204}
205
206} // anonymous namespace
207

Callers 7

SplitStringAllowEmptyFunction · 0.85
SplitStringToSetUsingFunction · 0.85
SplitStringToMapUsingFunction · 0.85
SplitStringPieceToVectorFunction · 0.85

Calls 2

AppendToImplFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected