![]() |
Home | Libraries | People | FAQ | More |
boost::polymorphic_strict_get — Retrieves a value of a specified type from a given
variant
.
// In header: <boost/variant/polymorphic_get.hpp> template<typename U, typename T1, typename T2, ..., typename TN> (variant< operand); template<typename U, typename T1, typename T2, ..., typename TN> (variant< operand); template<typename U, typename T1, typename T2, ..., typename TN> (variant< operand); template<typename U, typename T1, typename T2, ..., typename TN> (variant< operand);
Acts exactly like polymorphic_relaxed_get
but does a compile time check
that type U
is one of the types that can be stored in variant.