light/modules/lsd/primitives.cppm

35 lines
795 B
Text
Raw Normal View History

2025-11-16 14:29:03 +03:30
export module lsd.primitives;
import std;
/** THIS IS AND SHALL BE THE ONLY NAMESPACE FROM LT
THAT HAS NO SUB-NAMESPACE IDENTIFIER. */
export namespace lt {
2025-11-18 19:06:44 +03:30
using byte = ::std::byte;
2025-11-16 14:29:03 +03:30
2025-11-18 19:06:44 +03:30
using u8 = ::std::uint8_t;
using u16 = ::std::uint16_t;
using u32 = ::std::uint32_t;
using u64 = ::std::uint64_t;
using i8 = ::std::int8_t;
using i16 = ::std::int16_t;
using i32 = ::std::int32_t;
using i64 = ::std::int64_t;
2025-11-16 14:29:03 +03:30
using f32 = float;
using f64 = double;
2025-11-18 19:06:44 +03:30
using size_t = ::std::size_t;
using stream_size = ::std::streamsize;
// The fact that bit_cast is a part of the standard library,
// rather than a builtin like static_cast is language quirk.
//
// From the end-user's perspective, it would be convenient
// for the bit_cast to be a language keyword.
using ::std::bit_cast;
2025-11-17 13:17:05 +03:30
2025-11-16 14:29:03 +03:30
} // namespace lt