constCast overloads
Declared in <bslstl_sharedptr.h>
Return a shared_ptr obtained by const_cast from source.
template<
class TARGET,
class SOURCE>
static
bsl::shared_ptr<TARGET>
constCast(bsl::shared_ptr<SOURCE> const& source) noexcept;
» more...
Load target with a const_cast alias of source.
template<
class TARGET,
class SOURCE>
static
void
constCast(
bsl::shared_ptr<TARGET>* target,
bsl::shared_ptr<SOURCE> const& source);
» more...
shared pointer obtained by const_cast from source
| Name | Description |
|---|---|
| source | source shared pointer that supplies ownership |
| target | destination shared pointer loaded by the cast |