Utility types and constants for bsl::function small‐object optimization.

Synopsis

Declared in <bslstl_function_smallobjectoptimization.h>

class Function_SmallObjectOptimization;

Description

This utility struct provides a namespace for several types, type traits, and constants used in the implementation of the small‐object optimization for bsl::function.

Types

Name

Description

InplaceBuffer

Storage area for a functor representation using small‐object optimization.

IsInplaceFunc

Boolean metafunction reporting whether FN uses the inplace buffer.

SooFuncSize

Metafunction encoding object size and SOO eligibility for TP.

Static Data Members

Name

Description

k_NON_SOO_SMALL_SIZE

Encoding offset marking small functors that must not use SOO.

Created with MrDocs