Return whether this object's target uses in‐place storage.

Synopsis

Declared in <bslstl_function.h>

bool
isInplace() const noexcept;

Description

Return true if this function is empty or if it is non‐empty and its target qualifies for the small‐object optimization (and is thus allocated within this object's footprint); otherwise, return false.

DEPRECATED: Runtime checking of this optimization is discouraged.

Return Value

true if empty or the target is stored in‐place

Created with MrDocs