[#BloombergLP-ball-UserFieldValue-2constructor-071]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue]::UserFieldValue
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;ball&lowbar;userfieldvalue&period;h&gt;`

Create a user field value having the unset value&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/UserFieldValue/2constructor-05.adoc[UserFieldValue](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/UserFieldValue/2constructor-05.adoc[_» more&period;&period;&period;_]#

Create a user field value having the specified `value`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/UserFieldValue/2constructor-089.adoc[UserFieldValue](
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/UserFieldValue/2constructor-089.adoc[_» more&period;&period;&period;_]#

Create a user field value having the specified floating&hyphen;point `value`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/UserFieldValue/2constructor-08e.adoc[UserFieldValue](
    double value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/UserFieldValue/2constructor-08e.adoc[_» more&period;&period;&period;_]#

Create a user field value having the specified datetime&hyphen;with&hyphen;timezone `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/UserFieldValue/2constructor-075.adoc[UserFieldValue](
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/UserFieldValue/2constructor-075.adoc[_» more&period;&period;&period;_]#

Create a `UserFieldValue` object having the same value as the specified `original` object&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/UserFieldValue/2constructor-0e.adoc[UserFieldValue](
    xref:BloombergLP/ball/UserFieldValue.adoc[UserFieldValue] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/UserFieldValue/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create a user field value having the specified string `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/UserFieldValue/2constructor-03.adoc[UserFieldValue](
    std::string&lowbar;view const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/UserFieldValue/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a user field value having the specified character array `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/UserFieldValue/2constructor-06.adoc[UserFieldValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;char&gt;] const& value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/ball/UserFieldValue/2constructor-06.adoc[_» more&period;&period;&period;_]#

Create a user field value having the specified integral `value`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;INTEGRAL&lowbar;TYPE&gt;
explicit
xref:BloombergLP/ball/UserFieldValue/2constructor-0b.adoc[UserFieldValue](
    t&lowbar;INTEGRAL&lowbar;TYPE value,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0)
requires bsl&colon;&colon;is&lowbar;integral&lt;t&lowbar;INTEGRAL&lowbar;TYPE&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/ball/UserFieldValue/2constructor-0b.adoc[_» more&period;&period;&period;_]#


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