Skip to content

Commit

Permalink
Add byteswapForType.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaxyM authored Sep 7, 2024
1 parent 7362e89 commit 52431a8
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 @@ -10,6 +10,7 @@
#include "bit.d/bitwidthfortype.h"
#include "bit.d/bitwidthtype.h"
#include "bit.d/bitwidthvalue.h"
#include "bit.d/byteswapfortype.h"
#include "bit.d/byteswaptype.h"
#include "bit.d/byteswapvalue.h"
#include "bit.d/countlonetype.h"
Expand Down
14 changes: 14 additions & 0 deletions include/crap/bit.d/byteswapfortype.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef CRAP_BIT_BYTESWAPFORTYPE
#define CRAP_BIT_BYTESWAPFORTYPE

#include "byteswapvalue.h"

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

0 comments on commit 52431a8

Please sign in to comment.