libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
Constants

This file contains functionality for various constant values used in libsemigroups.

Typedefs

using LimitMax = detail::Constant<-2, detail::Max>
 Type for the maximum value of something.
 
using NegativeInfinity = detail::Constant<0, detail::Min>
 Type for negative infinity.
 
using PositiveInfinity = detail::Constant<-1, detail::Max>
 Type for positive infinity.
 
using Undefined = detail::Constant<0, detail::Max>
 Type for undefined values.
 

Variables

constexpr std::chrono::nanoseconds FOREVER = std::chrono::nanoseconds::max()
 Value indicating forever (system dependent but possibly approx. 292 years).
 
LimitMax const LIMIT_MAX
 Value for the maximum of something.
 
NegativeInfinity const NEGATIVE_INFINITY
 Value for negative infinity.
 
PositiveInfinity const POSITIVE_INFINITY
 Value for positive infinity.
 
Undefined const UNDEFINED
 Value for something undefined.
 

Typedef Documentation

◆ LimitMax

using LimitMax = detail::Constant<-2, detail::Max>

Type for the maximum value of something.

◆ NegativeInfinity

using NegativeInfinity = detail::Constant<0, detail::Min>

Type for negative infinity.

◆ PositiveInfinity

using PositiveInfinity = detail::Constant<-1, detail::Max>

Type for positive infinity.

◆ Undefined

using Undefined = detail::Constant<0, detail::Max>

Type for undefined values.

Variable Documentation

◆ FOREVER

◆ LIMIT_MAX

LimitMax const LIMIT_MAX
extern

This variable represents the maximum value that certain function parameters can have. LIMIT_MAX is comparable via ==, !=, <, > with any integral value (signed or unsigned), and is comparable to any other constant via == and !=, but not by < and >.

◆ NEGATIVE_INFINITY

NegativeInfinity const NEGATIVE_INFINITY
extern

This variable represents \(-\infty\). NEGATIVE_INFINITY is comparable via ==, !=, <, > with any signed integral value and with POSITIVE_INFINITY, and is comparable to any other constant via == and !=.

◆ POSITIVE_INFINITY

PositiveInfinity const POSITIVE_INFINITY
extern

This variable represents \(\infty\). POSITIVE_INFINITY is comparable via ==, !=, <, > with any integral value (signed or unsigned) and with NEGATIVE_INFINITY, and is comparable to any other constant via == and !=, but not by < and >.

◆ UNDEFINED

Undefined const UNDEFINED
extern

This variable is used to indicate that a value is undefined. UNDEFINED is comparable with any integral value (signed or unsigned) or constant via == and != but not via < or >.