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

Constructors

== Synopses

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

Create a context object with all attributes having default values&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Note that `basicAllocator` is currently ignored&period;


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

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

Create a context object having the value of the specified `original` context object&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Note that `basicAllocator` is currently ignored&period;


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

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

Create a context object indicating the specified `transmissionCause`, `recordIndex`, and `sequenceLength` values&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless the resulting attribute values are compatible&period; Note that `basicAllocator` is currently ignored&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/Context/2constructor-00.adoc[Context](
    xref:BloombergLP/ball/Transmission/Cause.adoc[Transmission::Cause] transmissionCause,
    int recordIndex,
    int sequenceLength,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

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


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