diff --git a/const_fmt/stdlib.h b/const_fmt/stdlib.h index c5b4e1c..7c249ca 100644 --- a/const_fmt/stdlib.h +++ b/const_fmt/stdlib.h @@ -38,22 +38,25 @@ using size_t = uint16_t; // clang-format off -template -struct remove_reference { - using type = T; -}; -template -struct remove_reference { - using type = T; -}; -template -struct remove_reference { - using type = T; -}; +template struct remove_reference { using type = T; }; +template struct remove_reference {using type = T; }; +template struct remove_reference { using type = T; }; -template +template using remove_reference_t = typename std::remove_reference::type; + +template struct remove_cv { typedef T type; }; +template struct remove_cv { typedef T type; }; +template struct remove_cv { typedef T type; }; +template struct remove_cv { typedef T type; }; + +template struct remove_const { typedef T type; }; +template struct remove_const { typedef T type; }; + +template struct remove_volatile { typedef T type; }; +template struct remove_volatile { typedef T type; }; + // clang-format on