This struct template provides a meta‐function to determine whether the (template parameter) t_TYPE1 and the (template parameter) t_TYPE2 are the same. This generic default template derives from bsl::false_type. A template specialization is provided (below) that derives from bsl::true_type.

Synopsis

Declared in <bslmf_issame.h>

template<
    class t_TYPE1,
    class t_TYPE2>
struct is_same
    : false_type

Base Classes

Name

Description

false_type

Metafunction representing the boolean constant false.

Specializations

Name

Description

is_same<t_TYPE, t_TYPE>

This partial specialization of is_same derives from bsl::true_type for when the (template parameter) types are the same.

Derived Classes