MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / isNonNull

Function isNonNull

quest/src/core/memory.cpp:414–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412
413template <typename T>
414bool isNonNull(T ptr) {
415
416 // note that (ptr == None) implies (ptr == nullptr)
417 return ptr != nullptr;
418}
419
420
421// fast checks which can be used in validation of existing

Callers 2

mem_isOuterAllocatedFunction · 0.85
mem_isAllocatedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected