MCPcopy Create free account
hub / github.com/android/ndk-samples / LogNullGuard

Class LogNullGuard

base/src/main/cpp/include/base/logging.h:385–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383// when writing the failure message.
384template <typename T>
385struct LogNullGuard {
386 static const T& Guard(const T& v) { return v; }
387};
388template <>
389struct LogNullGuard<std::nullptr_t> {
390 static const char* Guard(const std::nullptr_t&) { return "(null)"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected