[#BloombergLP-bslalg-ScalarPrimitives]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::ScalarPrimitives
:relfileprefix: ../../
:mrdocs:

Namespace for utility functions that operate on scalar `TARGET&lowbar;TYPE` elements&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;scalarprimitives&period;h&gt;`

[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&lowbar;TYPE`&period; If any of the `&period;&period;&period;Construct` methods throws, then its target `address` is left uninitialized and there are no effects, unless otherwise mentioned in the documentation&period;

== 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&period;
| xref:BloombergLP/bslalg/ScalarPrimitives/destructiveMove.adoc[`destructiveMove`] 
| Destructively move a `TARGET&lowbar;TYPE` from `original` to `address`&period;
| 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`&period;
|===



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