[#BloombergLP-bslstl-Function_SmallObjectOptimization]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Function&lowbar;SmallObjectOptimization
:relfileprefix: ../../
:mrdocs:

Utility types and constants for `bsl&colon;&colon;function` small&hyphen;object optimization&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;function&lowbar;smallobjectoptimization&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Function&lowbar;SmallObjectOptimization;
----

== Description

This utility `struct` provides a namespace for several types, type traits, and constants used in the implementation of the small&hyphen;object optimization for `bsl&colon;&colon;function`&period;

== Types

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Function_SmallObjectOptimization/InplaceBuffer.adoc[`InplaceBuffer`] 
| Storage area for a functor representation using small&hyphen;object optimization&period;
| xref:BloombergLP/bslstl/Function_SmallObjectOptimization/IsInplaceFunc.adoc[`IsInplaceFunc`] 
| Boolean metafunction reporting whether `FN` uses the inplace buffer&period;
| xref:BloombergLP/bslstl/Function_SmallObjectOptimization/SooFuncSize.adoc[`SooFuncSize`] 
| Metafunction encoding object size and SOO eligibility for `TP`&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Function_SmallObjectOptimization/k_NON_SOO_SMALL_SIZE.adoc[`k&lowbar;NON&lowbar;SOO&lowbar;SMALL&lowbar;SIZE`] 
| Encoding offset marking small functors that must not use SOO&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
