CVB++ 14.1
_doc_get_if_t_ts Class Reference

Tries to get the value of the given Shims::variant pointer pvar as the alternative with type T. More...

#include <variant.hpp>

Detailed Description

Tries to get the value of the given Shims::variant pointer pvar as the alternative with type T.

Template Parameters
TType to query.
Parameters
[in]pvarVariant to get the value of.
Returns
Pointer to the value in pvar; nullptr if pvar is nullptr or if the stored alternative is not of type T.