type_traits.is_tuple - MichaelMiller-/sec21 GitHub Wiki

sec21::type_traits::is_tuple

#include <sec21/type_traits/is_tuple.h>

Checks whether the type is a std::tuple<Ts...>.

Example

static_assert(is_tuple_v<std::tuple<int, float, int>> == true);
static_assert(is_tuple_v<std::tuple<>> == true);
static_assert(is_tuple_v<int> == false);
static_assert(is_tuple_v<std::string> == false);
static_assert(is_tuple_v<double> == false);
⚠️ **GitHub.com Fallback** ⚠️