IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::isize Struct Reference

Represents a signed size value on the given platform. More...

#include <ice/mem_size_types.hxx>

Public Types

using TypeTag = ice::StrongNumeric
using base_type = std::conditional_t<ice::build::is_x64, ice::i64, ice::i32>

Public Member Functions

constexpr auto to_usize () const noexcept

Public Attributes

base_type value

Detailed Description

Represents a signed size value on the given platform.

Note
The 'isize' type is used to force explicit conversions back to 'usize' after performing "unsafe" operations like 'subtraction'.

Member Typedef Documentation

◆ base_type

◆ TypeTag

Member Function Documentation

◆ to_usize()

auto ice::isize::to_usize ( ) const
constexprnoexcept

Member Data Documentation

◆ value

base_type ice::isize::value

The documentation for this struct was generated from the following file: