Commit 8972538d authored by Dominik Charousset's avatar Dominik Charousset

new convenience function: any_tuple::types_match

parent caf21b26
......@@ -194,6 +194,19 @@ class any_tuple {
explicit any_tuple(detail::abstract_tuple*);
template<class StaticTypeArray>
bool types_match(StaticTypeArray& arr) {
if (size() == StaticTypeArray::size) {
for (size_t i = 0; i < StaticTypeArray; ++i) {
if (type_at(i) != arr[i]) {
return false;
}
}
return true;
}
return false;
}
private:
value_ptr m_vals;
......
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