Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::MaxValue Struct Reference

An object that can be converted to any primitive type providing its max value. More...

#include <Limits.h>

Public Member Functions

template<typename T >
constexpr T SignedMaxValue () const
 
template<typename T >
constexpr T UnsignedMaxValue () const
 
constexpr operator uint8_t () const
 
constexpr operator uint16_t () const
 
constexpr operator uint32_t () const
 
constexpr operator uint64_t () const
 
constexpr operator int8_t () const
 
constexpr operator int16_t () const
 
constexpr operator int32_t () const
 
constexpr operator int64_t () const
 
template<typename T , typename TypeTraits::EnableIf< TypeTraits::IsSame< T, size_t >::value or TypeTraits::IsSame< T, ssize_t >::value, int >::type = 0>
constexpr operator T () const
 
constexpr operator float () const
 
constexpr operator double () const
 

Detailed Description

An object that can be converted to any primitive type providing its max value.

For example:

uint64_t value = MaxValue(); // contains now maximum value for uint64_t
An object that can be converted to any primitive type providing its max value.
Definition Limits.h:24

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