Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Static Public Attributes

bslmf::IsSame< t_TYPE1, t_TYPE2 > Struct Template Reference

#include <bslmf_issame.h>

Inheritance diagram for bslmf::IsSame< t_TYPE1, t_TYPE2 >:
bsl::integral_constant< t_TYPE, t_VAL >

List of all members.

Public Types

typedef t_TYPE value_type
typedef integral_constant type

Public Member Functions

BSLS_KEYWORD_CONSTEXPR operator value_type () const BSLS_KEYWORD_NOEXCEPT

Static Public Attributes

static
BSLS_KEYWORD_CONSTEXPR_MEMBER
t_TYPE 
value = t_VAL

Detailed Description

template<class t_TYPE1, class t_TYPE2>
struct bslmf::IsSame< t_TYPE1, t_TYPE2 >

This struct template implements a meta-function to determine if the (template parameter) t_TYPE1 and the (template parameter) t_TYPE2 are the same. This struct derives from bsl::true_type if t_TYPE1 and t_TYPE2 are the same, and bsl::false_type otherwise.

Note that although this struct is functionally equivalent to bsl::is_same, the use of bsl::is_same should be preferred.

See Component bslmf_issame


Member Typedef Documentation

template<class t_TYPE, t_TYPE t_VAL>
typedef t_TYPE bsl::integral_constant< t_TYPE, t_VAL >::value_type [inherited]
template<class t_TYPE, t_TYPE t_VAL>
typedef integral_constant bsl::integral_constant< t_TYPE, t_VAL >::type [inherited]

Member Function Documentation

template<class t_TYPE, t_TYPE t_VAL>
BSLS_KEYWORD_CONSTEXPR bsl::integral_constant< t_TYPE, t_VAL >::operator value_type (  )  const [inherited]

Return t_VAL.


Member Data Documentation

template<class t_TYPE, t_TYPE t_VAL>
BSLS_KEYWORD_CONSTEXPR_MEMBER t_TYPE bsl::integral_constant< t_TYPE, t_VAL >::value = t_VAL [static, inherited]

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