[#BloombergLP-bdlar-AnyRef-2constructor-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/AnyRef.adoc[AnyRef]::AnyRef
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdlar&lowbar;anyref&period;h&gt;`

Create an `AnyRef` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-0c.adoc[AnyRef](xref:BloombergLP/bdlar/AnyRefData.adoc[AnyRefData] const& data);
----

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

Create an `AnyRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-0f.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/ArrayVtable.adoc[ArrayVtable] const* vtable);
----

[.small]#xref:BloombergLP/bdlar/AnyRef/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Create an `AnyRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-05be6.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/ChoiceVtable.adoc[ChoiceVtable] const* vtable);
----

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

Create an `AnyRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-03.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/CustomizedTypeVtable.adoc[CustomizedTypeVtable] const* vtable);
----

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

Create an `AnyRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-00.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/DynamicTypeVtable.adoc[DynamicTypeVtable] const* vtable);
----

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

Create an `AnyRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-05be7.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/EnumVtable.adoc[EnumVtable] const* vtable);
----

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

Create an `AnyRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-0eb2.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/NullableValueVtable.adoc[NullableValueVtable] const* vtable);
----

[.small]#xref:BloombergLP/bdlar/AnyRef/2constructor-0eb2.adoc[_» more&period;&period;&period;_]#

Create an `AnyRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-0e4.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/SequenceVtable.adoc[SequenceVtable] const* vtable);
----

[.small]#xref:BloombergLP/bdlar/AnyRef/2constructor-0e4.adoc[_» more&period;&period;&period;_]#

Create an `AnyRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-08.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/SimpleTypeVtable.adoc[SimpleTypeVtable] const* vtable);
----

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

Create an `AnyRef` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/AnyRef/2constructor-0ebd.adoc[AnyRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/AnyVtable.adoc[AnyVtable] vtable,
    xref:BloombergLP/bdlat_TypeCategory/Value.adoc[bdlat&lowbar;TypeCategory::Value] category);
----

[.small]#xref:BloombergLP/bdlar/AnyRef/2constructor-0ebd.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| type&hyphen;erased object address, vtable, and category
| *objectAddress*
| address of the object to wrap
| *vtable*
| pointer to the array vtable
| *category*
| type category of the referred object
|===


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