![]() |
C++ Library Extensions 2022.12.09
To help learn modern C++ programming
|
Go to the source code of this file.
Functions | |
void | examine_integer_float_difference () |
template<typename Type > | |
types::enable_if_real_number_t< Type > | safe_add (Type a, Type b) |
template<typename Type > | |
types::enable_if_real_number_t< Type > | safe_sub (Type a, Type b) |
template<typename Type > | |
types::enable_if_real_number_t< Type > | safe_mul (Type a, Type b) |
template<typename Type > | |
types::enable_if_real_number_t< Type > | safe_div (Type a, Type b) |
void | examples_for_safe_floating_point_arithmetic () |
int | main () |
Variables | |
tpf::sstream | stream |
auto | endl = tpf::endl |
void examine_integer_float_difference | ( | ) |
Definition at line 8 of file 008-real.cpp.
void examples_for_safe_floating_point_arithmetic | ( | ) |
Definition at line 139 of file 008-real.cpp.
int main | ( | ) |
types::enable_if_real_number_t< Type > safe_add | ( | Type | a, |
Type | b | ||
) |
types::enable_if_real_number_t< Type > safe_div | ( | Type | a, |
Type | b | ||
) |
types::enable_if_real_number_t< Type > safe_mul | ( | Type | a, |
Type | b | ||
) |
Definition at line 105 of file 008-real.cpp.
types::enable_if_real_number_t< Type > safe_sub | ( | Type | a, |
Type | b | ||
) |
auto endl = tpf::endl |
Definition at line 6 of file 008-real.cpp.
tpf::sstream stream |
Definition at line 5 of file 008-real.cpp.