| 45 | } |
| 46 | |
| 47 | void add(std::vector<std::string> const& args) |
| 48 | { |
| 49 | for (std::string const& str : args) { |
| 50 | auto pair = string_pool.emplace(std::unique_ptr<std::string>{new std::string(str)}); |
| 51 | cl->emplace_back(&(*pair.first->get())[0]); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | int argc() { return cl->size(); } |
| 56 | char** argv() { return cl->data(); } |