Constructors

Synopses

Declared in <bdlar_anyref.h>

Create an AnyConstRef object.

Create an AnyConstRef object that wraps the same object as the specified object.

AnyConstRef(AnyRef const& object);

Create an AnyConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

AnyConstRef(
    void const* objectAddress,
    ArrayConstVtable const* vtable);

Create an AnyConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

AnyConstRef(
    void const* objectAddress,
    ChoiceConstVtable const* vtable);

Create an AnyConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

AnyConstRef(
    void const* objectAddress,
    CustomizedTypeConstVtable const* vtable);

Create an AnyConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

AnyConstRef(
    void const* objectAddress,
    DynamicTypeConstVtable const* vtable);

Create an AnyConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

AnyConstRef(
    void const* objectAddress,
    EnumConstVtable const* vtable);

Create an AnyConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

AnyConstRef(
    void const* objectAddress,
    NullableValueConstVtable const* vtable);

Create an AnyConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

AnyConstRef(
    void const* objectAddress,
    SequenceConstVtable const* vtable);

Create an AnyConstRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

AnyConstRef(
    void const* objectAddress,
    SimpleTypeConstVtable const* vtable);

Create an AnyConstRef object.

AnyConstRef(
    void const* objectAddress,
    AnyConstVtable vtable,
    bdlat_TypeCategory::Value category);

Parameters

Name

Description

data

type‐erased object address, vtable, and category

object

non‐const any reference to rewrap as const

objectAddress

address of the object to wrap

vtable

pointer to the const array vtable

category

type category of the referred object

Created with MrDocs