Return a pointer to the t_TYPE alternative in obj if active.
Synopsis
Declared in <bslstl_variant.h>
template<
class t_TYPE,
class t_HEAD,
class... t_TAIL>
add_pointer<t_TYPE const>::type
get_if(variant<t_HEAD, t_TAIL...> const* obj) noexcept;
Description
Same as the non‐`const` overload, for a const variant.
Return Value
pointer to the active t_TYPE, or null if inactive
Parameters
Name |
Description |
obj |
variant to query |
Created with MrDocs