PixelBullet
0.0.1
A C++ game engine
Loading...
Searching...
No Matches
engine
include
pixelbullet
core
bits.h
1
#pragma once
2
3
#include <concepts>
4
5
namespace
pixelbullet
6
{
7
template
<std::
int
egral T =
int
>
8
constexpr
T Bit(
unsigned
int
index)
9
{
10
return
static_cast<
T
>
(T{ 1 } << index);
11
}
12
}
// namespace pixelbullet
Generated by
1.12.0