VCCC  2024.05
VisualCamp Common C++ library
is_tuple_like.hpp
Go to the documentation of this file.
1 # /*
2 # * Created by YongGyu Lee on 2022/02/01.
3 # */
4 #
5 # ifndef VCCC_TYPE_TRAITS_IS_TUPLE_LIKE_HPP
6 # define VCCC_TYPE_TRAITS_IS_TUPLE_LIKE_HPP
7 #
8 # include <tuple>
9 # include <type_traits>
10 
11 namespace vccc {
12 
15 
17 template<typename T, typename = void>
18 struct is_tuple_like : std::false_type {};
19 
20 template<typename T>
21 struct is_tuple_like<T, void_t<decltype(std::tuple_size<T>::value)>> : std::true_type {};
22 
24 
25 } // namespace vccc
26 
27 # endif // VCCC_TYPE_TRAITS_IS_TUPLE_LIKE_HPP
void void_t
Definition: void_t.hpp:19
Definition: matrix.hpp:495
Definition: directory.h:12
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 1 > value
Definition: key_value.hpp:35
Check if type is tuple-like(deprecated. Use tuple_like instead)
Definition: is_tuple_like.hpp:18