[#BloombergLP-bsltf-AllocArgumentType]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::AllocArgumentType
:relfileprefix: ../../
:mrdocs:

This class template declares a separate type for each template parameter value `N`, `bsltf&colon;&colon;AllocArgumentType&lt;N&gt;`, that wraps an integer value and provides implicit conversion to and from `int`&period; The wrapped integer will be dynamically allocated using the supplied allocator, or the default allocator if none is supplied&period; Its main purpose is that having separate types for testing enables distinguishing them when calling through a function template interface, thereby avoiding ambiguities or accidental switching of arguments in the implementation of in&hyphen;place constructors&period; It further tests that allocators are propagated correctly, or not, as required&period;

== Synopsis

Declared in `&lt;bsltf&lowbar;allocargumenttype&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;int N&gt;
class AllocArgumentType;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/AllocArgumentType/2constructor-03.adoc[`AllocArgumentType`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bsltf/AllocArgumentType/2destructor.adoc[`&#126;AllocArgumentType`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bsltf/AllocArgumentType/operator_assign-01.adoc[`operator&equals;`] 
| Assignment operators
| xref:BloombergLP/bsltf/AllocArgumentType/allocator.adoc[`allocator`] 
| Return the allocator used by this object to supply memory&period;
| xref:BloombergLP/bsltf/AllocArgumentType/movedFrom.adoc[`movedFrom`] 
| Return the move state of this object as source of a move operation&period;
| xref:BloombergLP/bsltf/AllocArgumentType/movedInto.adoc[`movedInto`] 
| Return the move state of this object as target of a move operation&period;
| xref:BloombergLP/bsltf/AllocArgumentType/2conversion.adoc[`operator int`] 
| Return the value of this test argument object&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/getMovedFrom-00.adoc[`getMovedFrom`]
| Return the move&hyphen;from state of the specified `object`&period;
| xref:BloombergLP/bsltf/getMovedInto-0a.adoc[`getMovedInto`]
| Return the move&hyphen;into state of the specified `object`&period;
|===


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