Struct Terminator

Struct Documentation

struct Terminator

Calls std::terminate if the bool is false.

Public Static Functions

static inline void enforce(bool b)

Enforces truthiness of the given boolean value by terminating in case of violation.

Parameters:

b – Boolean value whose truthiness should be enforced