OpenTTD Source
12.0-beta2
|
Go to the source code of this file.
Data Structures | |
class | OverflowSafeInt< T > |
Overflow safe template for integers, i.e. More... | |
Typedefs | |
typedef OverflowSafeInt< int64 > | OverflowSafeInt64 |
typedef OverflowSafeInt< int32 > | OverflowSafeInt32 |
Functions | |
template<class T > | |
constexpr OverflowSafeInt< T > | operator+ (const int64 a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator- (const int64 a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator* (const int64 a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator/ (const int64 a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator+ (const int a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator- (const int a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator* (const int a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator/ (const int a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator+ (const uint a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator- (const uint a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator* (const uint a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator/ (const uint a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator+ (const byte a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator- (const byte a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator* (const byte a, const OverflowSafeInt< T > b) |
template<class T > | |
constexpr OverflowSafeInt< T > | operator/ (const byte a, const OverflowSafeInt< T > b) |
An overflow safe integer-like type.
Definition in file overflowsafe_type.hpp.