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