BloombergLP::bslmf::HasPointerSemantics

Metafunction indicating whether the (template parameter) t_TYPE has pointer-like semantics.

Synopsis

Declared in <bslmf_haspointersemantics.h>

template<class t_TYPE>
struct HasPointerSemantics
    : bsl::integral_constant<bool, bsl::is_pointer<t_TYPE>::value || DetectNestedTrait<t_TYPE, HasPointerSemantics>::value>

Base Classes

NameDescription
bsl::integral_constant<bool, bsl::is_pointer<t_TYPE>::value || DetectNestedTrait<t_TYPE, HasPointerSemantics>::value>Metafunction representing a compile-time constant of the specified (template parameter) t_TYPE with the specified (template parameter) t_VALUE.

Type Aliases

NameDescription
type Alias for this integral_constant specialization.
value_type

Member Functions

NameDescription
operator() Return a copy of the template argument t_VALUE.
operator value_type

Static Data Members

Name
value

Specializations

Name
HasPointerSemantics<bslma::ManagedPtr<TARGET_TYPE>>
HasPointerSemantics<std::auto_ptr<t_POINTED_TO_TYPE>>
HasPointerSemantics<bsl::shared_ptr<ELEMENT_TYPE>>
HasPointerSemantics<std::shared_ptr<t_POINTED_TO_TYPE>>
HasPointerSemantics<std::unique_ptr<t_POINTED_TO_TYPE>>