...
Code Block |
---|
std::vector<std::string> CppTest_Factory_vector_of_strings(unsigned int size, const std::string&value) { std::vector<std::string> vec; for (int i = 0; i < size; i++) { vec.push_back(value); } return vec; } |
For details, see see Using Factory Functions.
Runtime Error Detection
...