Commit 730d1979 authored by Matthias Vallentin's avatar Matthias Vallentin

Add variant trait helper

parent 7a2af0bf
...@@ -75,6 +75,9 @@ struct is_variant<const variant<Ts...>&> : std::true_type {}; ...@@ -75,6 +75,9 @@ struct is_variant<const variant<Ts...>&> : std::true_type {};
template <class... Ts> template <class... Ts>
struct is_variant<const variant<Ts...>&&> : std::true_type {}; struct is_variant<const variant<Ts...>&&> : std::true_type {};
template <class... Ts>
using is_variant_t = typename is_variant<Ts...>::type;
template <class T> template <class T>
struct variant_assign_helper { struct variant_assign_helper {
using result_type = void; using result_type = void;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment