header_utils
Loading...
Searching...
No Matches
cpp20.h
1
4
5#pragma once
6
7//#include "min-cpp-version/cpp17.h"
8
9#include <type_traits>
10
11namespace ghassanpl
12{
13#if defined(__cpp_lib_remove_cvref) && __cpp_lib_remove_cvref >= 201711L
14 using std::remove_cvref;
15 using std::remove_cvref_t;
16#else
17 template <class T>
18 using remove_cvref_t = std::remove_cv_t<std::remove_reference_t<T>>;
19
20 template <class T>
21 struct remove_cvref { using type = remove_cvref_t<T>; };
22#endif
23}
constexpr auto bit_count
Equal to the number of bits in the type.
Definition bits.h:33
Primary namespace for everything in this library.
Definition align+rec2.h:10