BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslmf_haspointersemantics

Detailed Description

Outline

Purpose

Provide a type trait for pointer semantics.

Classes

See also
bslmf_nestedtraitdeclaration

Description

This component defines a tag type HasPointerSemantics derived from bsl::true_type to indicate that a type has pointer semantics, and from bsl::false_type otherwise. A type has pointer-like semantics must define (at a minimum) operator* and operator->. All pointer types have pointer semantics; other types must explicitly add this trait, either with the macro BSLMF_NESTED_TRAIT_DECLARATION, or by explicit template specialization.