C++: Delete duplicated code.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-03-18 10:33:40 +00:00
parent 51db2b0bc4
commit 0be329dbdc

View File

@@ -2378,18 +2378,4 @@ namespace return_routine_type {
}
using size_t = decltype(sizeof(0));
template<class T>
struct remove_const { typedef T type; };
template<class T>
struct remove_const<const T> { typedef T type; };
// `remove_const_t<T>` removes any `const` specifier from `T`
template<class T>
using remove_const_t = typename remove_const<T>::type;
// semmle-extractor-options: -std=c++20 --clang