BloombergLP::bdlar::SequenceConstRef::SequenceConstRef

Constructors

Synopses

Declared in <bdlar_sequenceref.h>

Create SequenceConstRef object that wraps the same object as the specified object.

SequenceConstRef(SequenceRef const& object);
» more...

Create SequenceConstRef object that type erases the supplied sequence object.

template<class t_SEQUENCE>
explicit
SequenceConstRef(t_SEQUENCE const& sequence)
requires IsSequence<t_SEQUENCE>::value;
» more...

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

SequenceConstRef(
    void const* objectAddress,
    SequenceConstVtable const* vtable);
» more...

Parameters

NameDescription
objectnon-const sequence reference to rewrap as const
sequencesequence object to wrap
objectAddressaddress of the sequence object to wrap
vtablepointer to the const vtable for the sequence type