Add new min and max methods on safe
This commit is contained in:
parent
812b42dbe6
commit
be5a67763b
1 changed files with 4 additions and 0 deletions
|
|
@ -22,6 +22,10 @@ namespace fc {
|
||||||
safe(){}
|
safe(){}
|
||||||
safe( const safe& o ):value(o.value){}
|
safe( const safe& o ):value(o.value){}
|
||||||
|
|
||||||
|
static safe max()
|
||||||
|
{ return std::numeric_limits<T>::max(); }
|
||||||
|
static safe min()
|
||||||
|
{ return std::numeric_limits<T>::min(); }
|
||||||
|
|
||||||
safe& operator += ( const safe& b )
|
safe& operator += ( const safe& b )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue