Sane C++ Libraries
C++ Platform Abstraction Libraries
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 size_t () const
 
constexpr operator int8_t () const
 
constexpr operator int16_t () const
 
constexpr operator int32_t () const
 
constexpr operator int64_t () const
 
constexpr operator ssize_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.

Fox Example:

uint64_t value = MaxValue(); // contains now maximum value for uint64_t
unsigned long long uint64_t
Platform independent (8) bytes unsigned int.
Definition: PrimitiveTypes.h:42

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