kblib  0.2.3
General utilities library for modern C++
kblib::nums::min_t Struct Reference

Shorthand for std::numeric_limits::min() More...

#include <kblib/stats.h>

Public Member Functions

template<typename T >
constexpr operator T () const noexcept(noexcept(std::numeric_limits< T >::min()))
 
template<typename L , typename R >
constexpr auto operator() (L &&lhs, R &&rhs) const noexcept -> decltype(auto)
 Returns the smaller of two values. Returns rhs if equal. More...
 

Static Public Member Functions

template<typename T >
constexpr static auto of () noexcept(noexcept(std::numeric_limits< T >::min()))
 

Friends

template<typename T >
constexpr friend auto operator== (T t, min_t) -> bool
 
template<typename T >
constexpr friend auto operator== (min_t, T t) -> bool
 
template<typename T >
constexpr friend auto operator!= (T t, min_t) -> bool
 
template<typename T >
constexpr friend auto operator!= (min_t, T t) -> bool
 
template<typename T >
constexpr friend auto operator< (T t, min_t) -> bool
 
template<typename T >
constexpr friend auto operator< (min_t, T t) -> bool
 
template<typename T >
constexpr friend auto operator> (T t, min_t) -> bool
 
template<typename T >
constexpr friend auto operator> (min_t, T t) -> bool
 
template<typename T >
constexpr friend auto operator<= (T t, min_t) -> bool
 
template<typename T >
constexpr friend auto operator<= (min_t, T t) -> bool
 
template<typename T >
constexpr friend auto operator>= (T t, min_t) -> bool
 
template<typename T >
constexpr friend auto operator>= (min_t, T t) -> bool
 
constexpr friend auto operator== (min_t, min_t) -> std::true_type
 
constexpr friend auto operator!= (min_t, min_t) -> std::false_type
 
constexpr friend auto operator< (min_t, min_t) -> std::false_type
 
constexpr friend auto operator> (min_t, min_t) -> std::false_type
 
constexpr friend auto operator<= (min_t, min_t) -> std::true_type
 
constexpr friend auto operator>= (min_t, min_t) -> std::true_type
 
constexpr friend auto operator== (max_t, min_t) -> std::false_type
 
constexpr friend auto operator== (min_t, max_t) -> std::false_type
 
constexpr friend auto operator!= (max_t, min_t) -> std::true_type
 
constexpr friend auto operator!= (min_t, max_t) -> std::true_type
 
constexpr friend auto operator< (max_t, min_t) -> std::false_type
 
constexpr friend auto operator< (min_t, max_t) -> std::true_type
 
constexpr friend auto operator> (max_t, min_t) -> std::true_type
 
constexpr friend auto operator> (min_t, max_t) -> std::false_type
 
constexpr friend auto operator<= (max_t, min_t) -> std::false_type
 
constexpr friend auto operator<= (min_t, max_t) -> std::true_type
 
constexpr friend auto operator>= (max_t, min_t) -> std::true_type
 
constexpr friend auto operator>= (min_t, max_t) -> std::false_type
 

Detailed Description

Shorthand for std::numeric_limits::min()

Implicitly converts to the minimum representable value of any numeric type. For unsigned destination types, this is always 0. For signed destination types, it depends on size.

Also serves as a min(a, b) function object.

Definition at line 304 of file stats.h.

Member Function Documentation

◆ of()

template<typename T >
constexpr static auto kblib::nums::min_t::of ( )
inlinestaticconstexprnoexcept

Definition at line 311 of file stats.h.

◆ operator T()

template<typename T >
constexpr kblib::nums::min_t::operator T ( ) const
inlineconstexprnoexcept

Definition at line 306 of file stats.h.

◆ operator()()

template<typename L , typename R >
constexpr auto kblib::nums::min_t::operator() ( L &&  lhs,
R &&  rhs 
) const -> decltype(auto)
inlineconstexprnoexcept

Returns the smaller of two values. Returns rhs if equal.

Definition at line 320 of file stats.h.

Friends And Related Function Documentation

◆ operator!= [1/5]

constexpr friend auto operator!= ( max_t  ,
min_t   
) -> std::true_type
friend

Definition at line 410 of file stats.h.

◆ operator!= [2/5]

constexpr friend auto operator!= ( min_t  ,
max_t   
) -> std::true_type
friend

Definition at line 414 of file stats.h.

◆ operator!= [3/5]

constexpr friend auto operator!= ( min_t  ,
min_t   
) -> std::false_type
friend

Definition at line 381 of file stats.h.

◆ operator!= [4/5]

template<typename T >
constexpr friend auto operator!= ( min_t  ,
t 
) -> bool
friend

Definition at line 339 of file stats.h.

◆ operator!= [5/5]

template<typename T >
constexpr friend auto operator!= ( t,
min_t   
) -> bool
friend

Definition at line 335 of file stats.h.

◆ operator< [1/5]

constexpr friend auto operator< ( max_t  ,
min_t   
) -> std::false_type
friend

Definition at line 418 of file stats.h.

◆ operator< [2/5]

constexpr friend auto operator< ( min_t  ,
max_t   
) -> std::true_type
friend

Definition at line 422 of file stats.h.

◆ operator< [3/5]

constexpr friend auto operator< ( min_t  ,
min_t   
) -> std::false_type
friend

Definition at line 385 of file stats.h.

◆ operator< [4/5]

template<typename T >
constexpr friend auto operator< ( min_t  ,
t 
) -> bool
friend

Definition at line 348 of file stats.h.

◆ operator< [5/5]

template<typename T >
constexpr friend auto operator< ( t,
min_t   
) -> bool
friend

Definition at line 344 of file stats.h.

◆ operator<= [1/5]

constexpr friend auto operator<= ( max_t  ,
min_t   
) -> std::false_type
friend

Definition at line 434 of file stats.h.

◆ operator<= [2/5]

constexpr friend auto operator<= ( min_t  ,
max_t   
) -> std::true_type
friend

Definition at line 438 of file stats.h.

◆ operator<= [3/5]

constexpr friend auto operator<= ( min_t  ,
min_t   
) -> std::true_type
friend

Definition at line 393 of file stats.h.

◆ operator<= [4/5]

template<typename T >
constexpr friend auto operator<= ( min_t  ,
t 
) -> bool
friend

Definition at line 365 of file stats.h.

◆ operator<= [5/5]

template<typename T >
constexpr friend auto operator<= ( t,
min_t   
) -> bool
friend

Definition at line 361 of file stats.h.

◆ operator== [1/5]

constexpr friend auto operator== ( max_t  ,
min_t   
) -> std::false_type
friend

Definition at line 402 of file stats.h.

◆ operator== [2/5]

constexpr friend auto operator== ( min_t  ,
max_t   
) -> std::false_type
friend

Definition at line 406 of file stats.h.

◆ operator== [3/5]

constexpr friend auto operator== ( min_t  ,
min_t   
) -> std::true_type
friend

Definition at line 377 of file stats.h.

◆ operator== [4/5]

template<typename T >
constexpr friend auto operator== ( min_t  ,
t 
) -> bool
friend

Definition at line 331 of file stats.h.

◆ operator== [5/5]

template<typename T >
constexpr friend auto operator== ( t,
min_t   
) -> bool
friend

Definition at line 327 of file stats.h.

◆ operator> [1/5]

constexpr friend auto operator> ( max_t  ,
min_t   
) -> std::true_type
friend

Definition at line 426 of file stats.h.

◆ operator> [2/5]

constexpr friend auto operator> ( min_t  ,
max_t   
) -> std::false_type
friend

Definition at line 430 of file stats.h.

◆ operator> [3/5]

constexpr friend auto operator> ( min_t  ,
min_t   
) -> std::false_type
friend

Definition at line 389 of file stats.h.

◆ operator> [4/5]

template<typename T >
constexpr friend auto operator> ( min_t  ,
t 
) -> bool
friend

Definition at line 356 of file stats.h.

◆ operator> [5/5]

template<typename T >
constexpr friend auto operator> ( t,
min_t   
) -> bool
friend

Definition at line 352 of file stats.h.

◆ operator>= [1/5]

constexpr friend auto operator>= ( max_t  ,
min_t   
) -> std::true_type
friend

Definition at line 442 of file stats.h.

◆ operator>= [2/5]

constexpr friend auto operator>= ( min_t  ,
max_t   
) -> std::false_type
friend

Definition at line 446 of file stats.h.

◆ operator>= [3/5]

constexpr friend auto operator>= ( min_t  ,
min_t   
) -> std::true_type
friend

Definition at line 397 of file stats.h.

◆ operator>= [4/5]

template<typename T >
constexpr friend auto operator>= ( min_t  ,
t 
) -> bool
friend

Definition at line 373 of file stats.h.

◆ operator>= [5/5]

template<typename T >
constexpr friend auto operator>= ( t,
min_t   
) -> bool
friend

Definition at line 369 of file stats.h.


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