Skip to content

Commit

Permalink
Add countlOneForType.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaxyM authored Sep 7, 2024
1 parent 52431a8 commit 8ff5dd8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/crap/bit
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 14 additions & 0 deletions include/crap/bit.d/countlonefortype.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef CRAP_BIT_COUNTLONEFORTYPE
#define CRAP_BIT_COUNTLONEFORTYPE

#include "countlonevalue.h"

namespace crap
{
template <class Type> struct countlOneForType
{
template <Type Value> using type = countlOneValue<Type, Value>;
};
}
#endif

0 comments on commit 8ff5dd8

Please sign in to comment.