| 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(); |
no test coverage detected