From 8ff5dd89da18c259fa77b3cc418daae015ed3e50 Mon Sep 17 00:00:00 2001 From: Igor Zarzycki Date: Sat, 7 Sep 2024 23:25:57 +0200 Subject: [PATCH] Add countlOneForType. --- include/crap/bit | 1 + include/crap/bit.d/countlonefortype.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 include/crap/bit.d/countlonefortype.h diff --git a/include/crap/bit b/include/crap/bit index bdfce2b..f76ffeb 100644 --- a/include/crap/bit +++ b/include/crap/bit @@ -13,6 +13,7 @@ #include "bit.d/byteswapfortype.h" #include "bit.d/byteswaptype.h" #include "bit.d/byteswapvalue.h" +#include "bit.d/countlonefortype.h" #include "bit.d/countlonetype.h" #include "bit.d/countlonevalue.h" #include "bit.d/countlzerotype.h" diff --git a/include/crap/bit.d/countlonefortype.h b/include/crap/bit.d/countlonefortype.h new file mode 100644 index 0000000..3e49087 --- /dev/null +++ b/include/crap/bit.d/countlonefortype.h @@ -0,0 +1,14 @@ +#ifndef CRAP_BIT_COUNTLONEFORTYPE +#define CRAP_BIT_COUNTLONEFORTYPE + +#include "countlonevalue.h" + +namespace crap +{ + template struct countlOneForType + { + template using type = countlOneValue; + }; +} +#endif +