OperatorAdditionSubtraction< TS > Class Template Reference
|
CPP API
|
mio::OperatorAdditionSubtraction< TS > Class Template Reference
base class to add default operator +, +=, -, -= to a class derived from TypeSafe. More...
#include <type_safe.h>
Inheritance diagram for mio::OperatorAdditionSubtraction< TS >:
Collaboration diagram for mio::OperatorAdditionSubtraction< TS >:
Public Member Functions | |
| TS | operator+ (const TS &other) const |
| TS & | operator+= (const TS &other) |
| TS | operator- (const TS &other) const |
| TS & | operator-= (const TS &other) |
Public Member Functions inherited from mio::OperatorIncrementDecrement< TS > | |
| TS & | operator++ () |
| TS | operator++ (int) |
| TS & | operator-- () |
| TS | operator-- (int) |
Detailed Description
template<class TS>
class mio::OperatorAdditionSubtraction< TS >
base class to add default operator +, +=, -, -= to a class derived from TypeSafe.
- Template Parameters
-
TS Concrete class derived from TypeSafe
Member Function Documentation
◆ operator+()
template<class TS >
|
inline |
◆ operator+=()
template<class TS >
|
inline |
◆ operator-()
template<class TS >
|
inline |
◆ operator-=()
template<class TS >
|
inline |
Generated by
Public Member Functions inherited from