operator-()
Contents
[
Hide
]System::operator-(DayOfWeek, DayOfWeek) function
Calculates the number of days between two days of week.
auto System::operator-(DayOfWeek a, DayOfWeek b)
Arguments
Parameter | Type | Description |
---|---|---|
a | DayOfWeek | The minuend |
b | DayOfWeek | The subtrahend |
Return Value
The number of days between weekdays a and b; the return value is a negative number if goes after ****
System::operator-(const T&, const Decimal&) function
Returns a new instance of Decimal class that represents a value that is the result of subtraction of the value represented by the specified Decimal object from the specified value.
template<typename T,typename _> Decimal System::operator-(const T &x, const Decimal &d)
Arguments
Parameter | Type | Description |
---|---|---|
x | const T& | The value to subtract from |
d | const Decimal& | The Decimal object representing the subtracted value |
Return Value
A new instance of Decimal class that represents a value that is the result of subtraction of the value represented by d from x.
System::operator-(MulticastDelegate<T>, MulticastDelegate<T>) function
Disconnects all callbacks in right hand delegate from the end of left hand delegate callback list.
template<typename T> MulticastDelegate<T> System::operator-(MulticastDelegate<T> lhv, MulticastDelegate<T> rhv)
Arguments
Parameter | Type | Description |
---|---|---|
lhv | MulticastDelegate<T> | The delegate from which callbacks will be removed. |
rhv | MulticastDelegate<T> | The delegate whose callbacks will be removed. |
Return Value
Returns a delegate that contains the callbacks of the left hand value, but without the right hand value ones.
System::operator-(const T1&, const Nullable<T2>&) function
Subtracts non-nullable and nullable values.
template<typename T1,typename T2,typename> auto System::operator-(const T1 &some, const Nullable<T2> &other) -> System::Nullable<decltype(some - other.get_Value())>
Template parameters
Parameter | Description |
---|---|
T1 | Left operand type. |
T2 | Right operand type. |
Arguments
Parameter | Type | Description |
---|---|---|
some | const T1& | Left operand. |
other | const Nullable<T2>& | Right operand. |
Return Value
Substation result.
See Also
- Enum DayOfWeek
- Class Decimal
- Class Nullable
- Namespace System
- Library Aspose.Slides