MCPcopy Create free account
hub / github.com/apache/singa / AddArguments

Method AddArguments

test/gtest/gtest-all.cc:7398–7404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7396
7397 template <typename Str>
7398 void AddArguments(const ::std::vector<Str>& arguments) {
7399 for (typename ::std::vector<Str>::const_iterator i = arguments.begin();
7400 i != arguments.end();
7401 ++i) {
7402 args_.insert(args_.end() - 1, posix::StrDup(i->c_str()));
7403 }
7404 }
7405 char* const* Argv() {
7406 return &args_[0];
7407 }

Callers 1

AssumeRoleMethod · 0.80

Calls 3

StrDupFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected