Skip to content

negative(variant):variant

Implement - (unary minus, negation) operation on variants.

Declaration

Source position: varianth.inc line 370

  operator -(const op: variant) : variant;

Description

The implementation of the unary minus (-) operation is delegated to the variant manager with operation varNeg.

Errors

Execution of this operator may result in an exception if no variant manager is installed or if the types of the operand are not suitable for the operation.

See also

Name Description
operator -(variant, variant): variant Implement subtraction (-) operation on variants.