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