Error policy that terminates the program on overflow (always available, freestanding‐safe).

Synopsis

Declared in <mp‐units/utility/safe_int.h>

struct safe_int_terminate_policy
    : terminate_policy

Base Classes

Name

Description

terminate_policy

Error policy that terminates the program on constraint violation (freestanding‐safe).

Static Member Functions

Name

Description

on_constraint_violation [noreturn]

Reports a constraint violation by terminating the program.

on_overflow [noreturn]

Terminates the program by aborting; called by safe_int on overflow.

Created with MrDocs