Documentation of type_safe

( foonathan/type_safe)

Header file config.hpp

#define TYPE_SAFE_ENABLE_ASSERTIONS

#define TYPE_SAFE_ENABLE_PRECONDITION_CHECKS

#define TYPE_SAFE_ENABLE_WRAPPER

#define TYPE_SAFE_ARITHMETIC_UB

#define TYPE_SAFE_USE_RTTI

Macro TYPE_SAFE_ENABLE_ASSERTIONS

#define TYPE_SAFE_ENABLE_ASSERTIONS

Controls whether internal assertions are enabled.

It is disabled by default.

Macro TYPE_SAFE_ENABLE_PRECONDITION_CHECKS

#define TYPE_SAFE_ENABLE_PRECONDITION_CHECKS

Controls whether preconditions are checked.

It is enabled by default.

Macro TYPE_SAFE_ENABLE_WRAPPER

#define TYPE_SAFE_ENABLE_WRAPPER

Controls whether the typedefs in types.hpp use the type safe wrapper types.

It is enabled by default.

Macro TYPE_SAFE_ARITHMETIC_UB

#define TYPE_SAFE_ARITHMETIC_UB

Controls whether ts::arithmetic_policy_default is ts::undefined_behavior_arithmetic or ts::default_arithmetic.

It is ts::undefined_behavior_arithmetic by default.