[#BloombergLP-bslmf-MatchArithmeticType]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::MatchArithmeticType
:relfileprefix: ../../
:mrdocs:

Type to which any arithmetic or enumeration type can be converted&period;

== Synopsis

Declared in `&lt;bslmf&lowbar;matcharithmetictype&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class MatchArithmeticType;
----

== Description

This copy&hyphen;constructible mechanism can be used as a formal parameter for functions where an arithmetic type can be confused with an iterator type&period; A copy&hyphen;constructible mechanism is needed so that such objects can be used as function arguments&period;

Note that if a type has a user&hyphen;defined conversion to arithmetic value, this will _not_ match because passing such an object would require two user&hyphen;defined conversions&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslmf/MatchArithmeticType/2constructor.adoc[`MatchArithmeticType`]         [.small]#[constructor]#
| Create a `MatchArithmeticType` from an arithmetic or enumeration value&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
