CVB++ 14.1
_doc_get_if_i_ts Class Reference

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

#include <variant.hpp>

Detailed Description

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

Template Parameters
IIndex of alternative to extract.
Parameters
[in]pvarVariant to get the value of.
Returns
Pointer to the value in pvar; nullptr if pvar is nullptr or I is unequal pvar object's index().