ネームスペース |
namespace | impl |
構成 |
struct | overflow_static_cast |
| オーバーフローすると例外を発生させるstatic_cast. [詳細]
|
struct | no_overflow_static_cast |
| オーバーフローするとキャスト先の型の最大または最小値になるstatic_cast. [詳細]
|
関数 |
template<typename T > |
T | OverflowAdd (const T &lhs, const T &rhs) throw (std::overflow_error) |
template<typename T > |
T | OverflowSub (const T &lhs, const T &rhs) throw (std::overflow_error) |
template<typename T > |
T | OverflowMul (const T &lhs, const T &rhs) throw (std::overflow_error) |
template<typename T > |
T | OverflowDiv (const T &lhs, const T &rhs) throw (std::overflow_error, std::logic_error) |
template<typename T > |
T | NoOverflowAdd (const T &lhs, const T &rhs) throw () |
template<typename T > |
T | NoOverflowSub (const T &lhs, const T &rhs) throw () |
template<typename T > |
T | NoOverflowMul (const T &lhs, const T &rhs) throw () |
template<typename T > |
T | NoOverflowDiv (const T &lhs, const T &rhs) throw (std::logic_error) |