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.

Synopsis

Declared in <bslmf_matcharithmetictype.h>

class MatchArithmeticType;

Description

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.

Member Functions

Name

Description

MatchArithmeticType [constructor]

IMPLICIT Conversion constructor. Does nothing.

Created with MrDocs