Skip to content
Snippets Groups Projects
Commit b9e6bbe4 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add an `is_std_tuple_v` type traits utility

parent 28e24b1d
No related branches found
No related tags found
1 merge request!76Feature/builtin functions
......@@ -3,6 +3,7 @@
#include <cstddef>
#include <memory>
#include <tuple>
#include <type_traits>
#include <variant>
#include <vector>
......@@ -40,7 +41,7 @@ inline constexpr bool is_shared_ptr_v = false;
template <typename T>
inline constexpr bool is_shared_ptr_v<std::shared_ptr<T>> = true;
// Traits is_shared_ptr
// Traits is_unique_ptr
template <typename T>
inline constexpr bool is_unique_ptr_v = false;
......@@ -76,6 +77,14 @@ inline constexpr bool is_std_vector_v = false;
template <typename T>
inline constexpr bool is_std_vector_v<std::vector<T>> = true;
// Traits is_std_tuple
template <typename... T>
inline constexpr bool is_std_tuple_v = false;
template <typename... T>
inline constexpr bool is_std_tuple_v<std::tuple<T...>> = true;
// Traits is_tiny_vector
template <typename T>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment