Utility types and constants for bsl::function small-object optimization.
Declared in <bslstl_function_smallobjectoptimization.h>
class Function_SmallObjectOptimization;
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.
| 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. |
| Name | Description |
|---|---|
k_NON_SOO_SMALL_SIZE | Encoding offset marking small functors that must not use SOO. |