Quick Links: |
#include <bslmf_matcharithmetictype.h>
Public Member Functions | |
template<class t_TYPE > | |
MatchArithmeticType (t_TYPE, typename bsl::enable_if< bsl::is_arithmetic< t_TYPE >::value||bsl::is_enum< t_TYPE >::value >::type *=0) | |
MatchArithmeticType (const MatchArithmeticType &) | |
~MatchArithmeticType () |
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.
See Component bslmf_matcharithmetictype
bslmf::MatchArithmeticType::MatchArithmeticType | ( | t_TYPE | , | |
typename bsl::enable_if< bsl::is_arithmetic< t_TYPE >::value||bsl::is_enum< t_TYPE >::value >::type * | = 0 | |||
) |
IMPLICIT Conversion constructor. Does nothing.
bslmf::MatchArithmeticType::MatchArithmeticType | ( | const MatchArithmeticType & | ) |
Create a MatchArithmeticType
object. Note that as MatchArithmeticType
is an empty (stateless) type, this operation has no observable effect.
bslmf::MatchArithmeticType::~MatchArithmeticType | ( | ) |
Destroy this object.