This copy-constructible mechanism can be used as a formal parameter for functions where an arithmetic type can be confused with an iterator type. A copy-constructible mechanism is needed so that such objects can be used as function arguments.
Declared in <bslmf_matcharithmetictype.h>
class MatchArithmeticType;
Note that if a type has a user-defined conversion to arithmetic value, this will not match because passing such an object would require two user-defined conversions.
| Name | Description |
|---|---|
MatchArithmeticType [constructor] | IMPLICIT Conversion constructor. Does nothing. |