// // Created by darman on 9/5/26. // #pragma once #include #include #include #include #include #include #include #include #include #include #include using string = std::string; // Type aliases using int8 = int8_t; using int16 = int16_t; using int32 = int32_t; using int64 = int64_t; using uint8 = uint8_t; using uint16 = uint16_t; using uint32 = uint32_t; using uint64 = uint64_t; template using Vector = std::vector; template using Set = std::unordered_set; template using Map = std::unordered_map; template using Optional = std::optional; constexpr std::nullopt_t None = std::nullopt; template using Ref = std::shared_ptr; template constexpr Ref MakeRef(Args&&... args) { return std::make_shared(std::forward(args)...); } template > constexpr Ref MakeRef(T* ptr, D deleter = D()) { return Ref(ptr, std::move(deleter)); } template > using UniqueRef = std::unique_ptr; template , typename... Args> constexpr UniqueRef MakeUniqueRef(Args&&... args) { return std::make_unique(std::forward(args)...); } template constexpr string TypeName() { return boost::typeindex::type_id().pretty_name(); }