Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bslstl::Function_IsReferenceCompatible< FROM_TYPE, const TO_TYPE > Struct Template Reference

#include <bslstl_function_isreferencecompatible.h>

Inheritance diagram for bslstl::Function_IsReferenceCompatible< FROM_TYPE, const TO_TYPE >:
bslstl::Function_IsReferenceCompatible< bsl::remove_const< FROM_TYPE >::type, TO_TYPE > type

List of all members.

Public Member Functions

 BSLMF_ASSERT (!bslmf::MovableRefUtil::IsReference< bsl::remove_const< FROM_TYPE >::type >::value)
 BSLMF_ASSERT (!bslmf::MovableRefUtil::IsReference< TO_TYPE >::value)

Detailed Description

template<class FROM_TYPE, class TO_TYPE>
struct bslstl::Function_IsReferenceCompatible< FROM_TYPE, const TO_TYPE >

Partial specialization of Function_IsReferenceCompatible for TO_TYPE being const. The evaluation is forwarded to other specializations after stripping the const qualifiers. Note that if FROM_TYPE is const and TO_TYPE is mutable, this partial specialization will not be selected and the resulting evaluation will yield false_type, reflecting the fact that a reference to const type cannot be substituted with a reference to mutable type.

See Component bslstl_function_isreferencecompatible


Member Function Documentation

bslstl::Function_IsReferenceCompatible< bsl::remove_const< FROM_TYPE >::type , TO_TYPE >::BSLMF_ASSERT ( !bslmf::MovableRefUtil::IsReference< bsl::remove_const< FROM_TYPE >::type >::value   )  [inherited]
bslstl::Function_IsReferenceCompatible< bsl::remove_const< FROM_TYPE >::type , TO_TYPE >::BSLMF_ASSERT ( !bslmf::MovableRefUtil::IsReference< TO_TYPE >::value   )  [inherited]

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