folly::default_null_handler

Default policy handling null-pointer violations for not_null.

Synopsis

Declared in <folly/memory/not_null.h>

class default_null_handler;

Static Member Functions

NameDescription
handle_terminate [noreturn]Handle termination when the invariant of the pointer being null is violated, such as when doing debug checking after moving from a not_null smart pointer.
handle_throw [noreturn]Handle when code attempts to construct or assign a not_null object from a null pointer.