basedOpinionated utility library |
git clone git://git.dimitrijedobrota.com/based.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |
extent.hpp (450B)
0 #pragma once
2 #include "based/types/types.hpp"
4 namespace based
5 {
7 // NOLINTBEGIN(*array*)
8 // clang-format off
10 template<class T>
11 struct remove_extent { using type = T; };
13 template<class T>
14 struct remove_extent<T[]> { using type = T; };
16 template<class T, size_t n>
17 struct remove_extent<T[n]> { using type = T; };
20 template<class T> using remove_extent_t = remove_extent<T>::type;
22 // NOLINTEND(*array*)
23 // clang-format on
25 } // namespace based