[#bsl-allocator-050-allocate-08]
= xref:bsl.adoc[bsl]::xref:bsl/allocator-050.adoc[allocator&lt;UserFieldValue&gt;]::allocate
:relfileprefix: ../../
:mrdocs:

== Synopsis

Declared in `&lt;bits&sol;memory&lowbar;resource&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue]*
allocate(size&lowbar;t &lowbar;&lowbar;n);
----

== Return Value

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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