#include <limits>
#include <optional>
#include <type_traits>
Go to the source code of this file.
|
| template<class T > |
| bool | AdditionOverflow (const T i, const T j) noexcept |
| |
| template<class T > |
| std::optional< T > | CheckedAdd (const T i, const T j) noexcept |
| |
| template<class T > |
| T | SaturatingAdd (const T i, const T j) noexcept |
| |
◆ AdditionOverflow()
template<class T >
| bool AdditionOverflow |
( |
const T |
i, |
|
|
const T |
j |
|
) |
| |
|
noexcept |
◆ CheckedAdd()
template<class T >
| std::optional<T> CheckedAdd |
( |
const T |
i, |
|
|
const T |
j |
|
) |
| |
|
noexcept |
◆ SaturatingAdd()
template<class T >
| T SaturatingAdd |
( |
const T |
i, |
|
|
const T |
j |
|
) |
| |
|
noexcept |