[ox/std] Add Siged and Unsiged templates
This commit is contained in:
parent
585ff0a1fe
commit
1780657789
6
deps/ox/src/ox/std/types.hpp
vendored
6
deps/ox/src/ox/std/types.hpp
vendored
@ -105,6 +105,12 @@ using Int = typename SignedType<bytes>::type;
|
||||
template<std::size_t bytes>
|
||||
using Uint = typename UnsignedType<bytes>::type;
|
||||
|
||||
template<typename T>
|
||||
using Signed = Int<sizeof(T) * 8>;
|
||||
|
||||
template<typename T>
|
||||
using Unsigned = Uint<sizeof(T) * 8>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user