Type to which any arithmetic or enumeration type can be converted.

Synopsis

Declared in <bslmf_matcharithmetictype.h>

class MatchArithmeticType;

Description

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.

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]

Create a MatchArithmeticType from an arithmetic or enumeration value.

Created with MrDocs