Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bslmf::MatchArithmeticType Class Reference

#include <bslmf_matcharithmetictype.h>

List of all members.

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 ()

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 Component bslmf_matcharithmetictype


Constructor & Destructor Documentation

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 
)

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.


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