BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslmf::MatchArithmeticType Class Reference

#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)
 IMPLICIT Conversion constructor. Does nothing.
 
 MatchArithmeticType (const MatchArithmeticType &)=default
 
 ~MatchArithmeticType ()=default
 

Detailed 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.

See bslmf_matcharithmetictype

Constructor & Destructor Documentation

◆ MatchArithmeticType() [1/2]

template<class t_TYPE >
bslmf::MatchArithmeticType::MatchArithmeticType ( t_TYPE  ,
typename bsl::enable_if< bsl::is_arithmetic< t_TYPE >::value||bsl::is_enum< t_TYPE >::value >::type *  = 0 
)
inline

◆ MatchArithmeticType() [2/2]

bslmf::MatchArithmeticType::MatchArithmeticType ( const MatchArithmeticType )
default

◆ ~MatchArithmeticType()

bslmf::MatchArithmeticType::~MatchArithmeticType ( )
default

The documentation for this class was generated from the following file: