helib::OptLong Class Reference

Represents the set of long int's plus a distinguished value that can be used to denote "undefined". Similary in spirit to C++17's optional<long> type. More...

#include <NumbTh.h>

Public Member Functions

 OptLong ()
 
 OptLong (long _data)
 
bool isDefined () const
 
 operator long () const
 

Detailed Description

Represents the set of long int's plus a distinguished value that can be used to denote "undefined". Similary in spirit to C++17's optional<long> type.

Constructor & Destructor Documentation

◆ OptLong() [1/2]

helib::OptLong::OptLong ( )
inline

◆ OptLong() [2/2]

helib::OptLong::OptLong ( long  _data)
inline

Member Function Documentation

◆ isDefined()

bool helib::OptLong::isDefined ( ) const
inline

◆ operator long()

helib::OptLong::operator long ( ) const
inline