My Project
Static Public Member Functions | List of all members
bsl::numeric_limits< T > Class Template Referencefinal

Implements std::numeric_limits. More...

#include <numeric_limits.hpp>

Static Public Member Functions

static constexpr T min () noexcept
 Returns the min value of T. More...
 
static constexpr T lowest () noexcept
 Returns the lowest value of T. More...
 
static constexpr T max () noexcept
 Returns the max value of T. More...
 
static constexpr T epsilon () noexcept
 Returns the floating point resolution. More...
 
static constexpr T round_error () noexcept
 Returns the rounding error of T. More...
 
static constexpr T infinity () noexcept
 Returns the value of infinity for T. More...
 
static constexpr T quiet_NaN () noexcept
 Returns the quiet NaN value for T. More...
 
static constexpr T signaling_NaN () noexcept
 Returns the signaling NaN value for T. More...
 
static constexpr T denorm_min () noexcept
 Returns the smallest subnormal value for T. More...
 

Detailed Description

template<typename T>
class bsl::numeric_limits< T >

Implements std::numeric_limits.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Template Parameters
Tthe type to get information about

Member Function Documentation

◆ min()

template<typename T >
static constexpr T bsl::numeric_limits< T >::min ( )
inlinestaticnoexcept

Returns the min value of T.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the min value of T

◆ lowest()

template<typename T >
static constexpr T bsl::numeric_limits< T >::lowest ( )
inlinestaticnoexcept

Returns the lowest value of T.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the lowest value of T

◆ max()

template<typename T >
static constexpr T bsl::numeric_limits< T >::max ( )
inlinestaticnoexcept

Returns the max value of T.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the max value of T

◆ epsilon()

template<typename T >
static constexpr T bsl::numeric_limits< T >::epsilon ( )
inlinestaticnoexcept

Returns the floating point resolution.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the max value of T

◆ round_error()

template<typename T >
static constexpr T bsl::numeric_limits< T >::round_error ( )
inlinestaticnoexcept

Returns the rounding error of T.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the rounding error of T

◆ infinity()

template<typename T >
static constexpr T bsl::numeric_limits< T >::infinity ( )
inlinestaticnoexcept

Returns the value of infinity for T.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the value of infinity for T

◆ quiet_NaN()

template<typename T >
static constexpr T bsl::numeric_limits< T >::quiet_NaN ( )
inlinestaticnoexcept

Returns the quiet NaN value for T.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the quiet NaN value for T

◆ signaling_NaN()

template<typename T >
static constexpr T bsl::numeric_limits< T >::signaling_NaN ( )
inlinestaticnoexcept

Returns the signaling NaN value for T.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the signaling NaN value for T

◆ denorm_min()

template<typename T >
static constexpr T bsl::numeric_limits< T >::denorm_min ( )
inlinestaticnoexcept

Returns the smallest subnormal value for T.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_numeric_limits_overview() noexcept
{
bsl::print() << "success\n";
}
}
}
Returns
Returns the smallest subnormal value for T

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