From 5eea1f4f40148c5607df95434f1f2d6aba2a4041 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 11 Nov 2024 12:00:50 +1000 Subject: [PATCH] std: add usize and isize typedefs --- cruft/util/std.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cruft/util/std.hpp b/cruft/util/std.hpp index 81cc612a..e03e42a2 100644 --- a/cruft/util/std.hpp +++ b/cruft/util/std.hpp @@ -9,6 +9,7 @@ #pragma once #include +#include /// A collection of convenience typedefs that define short aliases (three /// letters) to std sized types in the global namespace. @@ -50,3 +51,8 @@ using f64 = double; //----------------------------------------------------------------------------- static_assert (sizeof (f32) == 4); static_assert (sizeof (f64) == 8); + + +/////////////////////////////////////////////////////////////////////////////// +using isize = std::ptrdiff_t; +using usize = std::size_t;