Return a modifiable pointer to this object's target.

Synopsis

Declared in <bslstl_function_rep.h>

template<
    class TP,
    bool INPLACE>
TP*
targetRaw() const noexcept;

Description

Return a pointer offering modifiable access to this object's target. If INPLACE is true, then the object is assumed to be allocated inplace in the small object buffer. Note that this function is const but returns a non‐`const` pointer because this type does not adhere to logical constness conventions. The behavior is undefined unless typeid(TP) == this‐>target_type() and INPLACE correctly identifies whether the target is inplace.

Return Value

modifiable pointer to this object's target

Created with MrDocs