MCPcopy Create free account
hub / github.com/alibaba/libgrape-lite / push_back

Method push_back

grape/utils/string_view_vector.h:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 ~StringViewVector() {}
34
35 void push_back(const nonstd::string_view& val) {
36 size_t old_size = buffer_.size();
37 buffer_.resize(old_size + val.size());
38 memcpy(&buffer_[old_size], val.data(), val.size());
39 offsets_.push_back(buffer_.size());
40 }
41
42 void emplace_back(const nonstd::string_view& val) {
43 size_t old_size = buffer_.size();

Callers 3

StringViewVectorMethod · 0.45
emplace_backMethod · 0.45
clearMethod · 0.45

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected