ECSTASY
All in the name
Loading...
Searching...
No Matches
is_type_bounded_array.hpp
Go to the documentation of this file.
1
11
12#ifndef UTIL_META_IS_TYPE_BOUNDED_ARRAY_HPP_
13#define UTIL_META_IS_TYPE_BOUNDED_ARRAY_HPP_
14
15#include <type_traits>
16
17namespace util::meta
18{
19
29 template <typename T, typename U>
31
33 template <typename T, typename U>
34 requires std::is_bounded_array_v<T>
35 struct is_type_bounded_array<T, U> : std::is_same<std::remove_cvref_t<decltype(std::declval<T>()[0])>, U> {};
36
46 template <typename T, typename U>
48
49} // namespace util::meta
50
51#endif
Namespace regrouping all meta programmation helper types.
constexpr bool is_type_bounded_array_v
Helper for is_type_bounded_array<...>::value.
Check if a type is a bounded array of a given element type.