extend static_variant with is_type() method

This commit is contained in:
crypto-ape 2019-06-11 18:00:01 +02:00
parent e2c5160eba
commit f29248d139

View file

@ -443,6 +443,9 @@ public:
} }
tag_type which() const {return _tag;} tag_type which() const {return _tag;}
template<typename T>
bool is_type() const { return _tag == tag<T>::value; }
}; };
struct from_static_variant struct from_static_variant