bsl::function::target

target overloads

Synopses

Declared in <bslstl_function.h>

If TP is the same type as the target object, returns a pointer granting modifiable access to the target; otherwise return a null pointer.

template<class TP>
TP*
target() noexcept;
» more...

If TP is the same type as the target object, returns a pointer granting read-only access to the target; otherwise return a null pointer.

template<class TP>
TP const*
target() const noexcept;
» more...