sincerely Singaporean

If you have not done so, read this full tutorial on how to use SGEXTN to build an application.

SGLIntLimits

see header file

see source file

class SGLIntLimits;

part of SGEXTN module SG_Math

static function class providing int limits

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGLIntLimits.h›

CMake target for BuildLah: SGEXTN::SG_Math

see this link for more information about BuildLah

parent class: (none)

children classes: (none)

static member functions

static int maximum();

static int minimum();

Detailed Description

SGLIntLimits provides limits of the int data type including the maximum and minimum representable int values.

Implementation Details

Uses ‹numeric_limits› from Standard Template Library

static int maximum();

Returns the maximum possible 32bit signed integer.

Signed integer overflow is undefined behaviour. If integer overflow is ever intended, cast to unsigned int first.

static int minimum();

Returns the minimum possible 32bit signed integer.

Signed integer overflow is undefined behaviour. If integer overflow is ever intended, cast to unsigned int first.

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects