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

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

#include <ice/mem_size_types.hxx>

Public Types

using TypeTag = ice::StrongNumeric
using base_type = std::size_t

Public Member Functions

constexpr operator isize () const noexcept

Static Public Member Functions

static constexpr auto subtract (ice::usize left, ice::usize right) noexcept -> ice::usize
 Perform a checked subtraction, ensuring 'left' is greater or equal to 'right'.

Public Attributes

base_type value

Detailed Description

Represents a unsigned size value on the given platform.

Note
Some operations are limited or return a different result type, for ex.: 'usize - usize => isize'

Member Typedef Documentation

◆ base_type

using ice::usize::base_type = std::size_t

◆ TypeTag

Member Function Documentation

◆ operator isize()

ice::usize::operator isize ( ) const
constexprnoexcept

◆ subtract()

auto ice::usize::subtract ( ice::usize left,
ice::usize right ) -> ice::usize
staticconstexprnoexcept

Perform a checked subtraction, ensuring 'left' is greater or equal to 'right'.

Member Data Documentation

◆ value

base_type ice::usize::value

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