Constructors

Synopses

Declared in <bdlar_sequenceref.h>

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

SequenceConstRef(SequenceRef const& object);

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;

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

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

Parameters

Name

Description

object

non‐const sequence reference to rewrap as const

sequence

sequence object to wrap

objectAddress

address of the sequence object to wrap

vtable

pointer to the const vtable for the sequence type

Created with MrDocs