[#BloombergLP-bslalg-ScalarPrimitives] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::ScalarPrimitives :relfileprefix: ../../ :mrdocs: Namespace for utility functions that operate on scalar `TARGET_TYPE` elements. == Synopsis Declared in `<bslalg_scalarprimitives.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ScalarPrimitives; ---- == Description This `struct` provides a namespace for a suite of utility functions that operate on elements of a parameterized type `TARGET_TYPE`. If any of the `...Construct` methods throws, then its target `address` is left uninitialized and there are no effects, unless otherwise mentioned in the documentation. == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslalg/ScalarPrimitives/construct-044.adoc[`construct`] | `construct` overloads | xref:BloombergLP/bslalg/ScalarPrimitives/copyConstruct-09.adoc[`copyConstruct`] | `copyConstruct` overloads | xref:BloombergLP/bslalg/ScalarPrimitives/defaultConstruct-015.adoc[`defaultConstruct`] | `defaultConstruct` overloads | xref:BloombergLP/bslalg/ScalarPrimitives/destruct-01.adoc[`destruct`] | Destroy the specified `object` without deallocating its storage. | xref:BloombergLP/bslalg/ScalarPrimitives/destructiveMove.adoc[`destructiveMove`] | Destructively move a `TARGET_TYPE` from `original` to `address`. | xref:BloombergLP/bslalg/ScalarPrimitives/moveConstruct-0f.adoc[`moveConstruct`] | `moveConstruct` overloads | xref:BloombergLP/bslalg/ScalarPrimitives/swap.adoc[`swap`] | Exchange the contents of the specified `lhs` and `rhs`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#