Backport
bpstd::variant_alternative< I, T > Struct Template Reference

Helper variable template for extracting variant_size<T>::value. More...

#include <variant.hpp>

Detailed Description

template<std::size_t I, typename T>
struct bpstd::variant_alternative< I, T >

Helper variable template for extracting variant_size<T>::value.

A metafunction for extracting the type at index I from the (possibly CV-qualified) variant

Note
This template is not defined for non-variant types
The result is only defined for I < sizeof...(Types) in variant
Template Parameters
Ithe index
Tthe type

Definition at line 128 of file variant.hpp.


The documentation for this struct was generated from the following file: