[ox/std] Add Siged and Unsiged templates

This commit is contained in:
Gary Talent 2019-03-16 15:50:37 -05:00
parent 585ff0a1fe
commit 1780657789

View File

@ -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>;
}