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

Method CheckOpString

include/singa/utils/logging.h:143–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141// true iff the pointer is non-NULL.
142struct CheckOpString {
143 CheckOpString(string* str) : str_(str) {}
144 // No destructor: if str_ is non-NULL, we're about to LOG(FATAL),
145 // so there's no point in cleaning up str_.
146 operator bool() const { return str_ != NULL; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected