Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtPrivate::QCheckedIntegers::SafeCheckImpl< Int > Struct Template Reference

#include <qcheckedint_impl.h>

+ Inheritance diagram for QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >:
+ Collaboration diagram for QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >:

Static Public Member Functions

static constexpr bool add (Int a, Int b, Int *result) noexcept
 
static constexpr bool sub (Int a, Int b, Int *result) noexcept
 
static constexpr bool mul (Int a, Int b, Int *result) noexcept
 
static constexpr bool div (Int a, Int b, Int *result) noexcept
 

Static Public Attributes

static constexpr Int MinInt = (std::numeric_limits<Int>::min)()
 
static constexpr Int MaxInt = (std::numeric_limits<Int>::max)()
 

Detailed Description

template<typename Int>
struct QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >

Definition at line 30 of file qcheckedint_impl.h.

Member Function Documentation

◆ add()

template<typename Int>
static constexpr bool QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >::add ( Int a,
Int b,
Int * result )
inlinestaticnodiscardconstexprnoexcept

Definition at line 36 of file qcheckedint_impl.h.

◆ div()

template<typename Int>
static constexpr bool QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >::div ( Int a,
Int b,
Int * result )
inlinestaticnodiscardconstexprnoexcept

Definition at line 54 of file qcheckedint_impl.h.

◆ mul()

template<typename Int>
static constexpr bool QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >::mul ( Int a,
Int b,
Int * result )
inlinestaticnodiscardconstexprnoexcept

Definition at line 48 of file qcheckedint_impl.h.

◆ sub()

template<typename Int>
static constexpr bool QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >::sub ( Int a,
Int b,
Int * result )
inlinestaticnodiscardconstexprnoexcept

Definition at line 42 of file qcheckedint_impl.h.

Member Data Documentation

◆ MaxInt

template<typename Int>
Int QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >::MaxInt = (std::numeric_limits<Int>::max)()
inlinestaticconstexpr

Definition at line 33 of file qcheckedint_impl.h.

◆ MinInt

template<typename Int>
Int QtPrivate::QCheckedIntegers::SafeCheckImpl< Int >::MinInt = (std::numeric_limits<Int>::min)()
inlinestaticconstexpr

Definition at line 32 of file qcheckedint_impl.h.


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