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;

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;

Return Value

  • modifiable pointer to the target if TP matches, else null

  • read‐only pointer to the target if TP matches, else null

Created with MrDocs