MCPcopy Create free account
hub / github.com/SOCI/soci / MyOptionalString

Method MyOptionalString

tests/common/test-custom.cpp:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19{
20public:
21 MyOptionalString() : valid_(false) {}
22 MyOptionalString(const std::string& str) : valid_(true), str_(str) {}
23 void set(const std::string& str) { valid_ = true; str_ = str; }
24 void reset() { valid_ = false; str_.clear(); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected