folly::IsOneOf

A trait to test whether T is one of the types T1, T2, ..., Tn.

Synopsis

Declared in <folly/Traits.h>

template<
    typename T,
    typename... Ts>
using IsOneOf = StrictDisjunction<std::is_same<T, Ts>...>;