WPILibC++  unspecified
llvm::Optional< T > Class Template Reference

Public Types

typedef T value_type
 

Public Member Functions

 Optional (NoneType)
 
 Optional (const T &y)
 
 Optional (const Optional &O)
 
 Optional (T &&y)
 
 Optional (Optional< T > &&O)
 
Optionaloperator= (T &&y)
 
Optionaloperator= (Optional &&O)
 
template<typename... ArgTypes>
void emplace (ArgTypes &&...Args)
 Create a new object by constructing it in place with the given arguments.
 
Optionaloperator= (const T &y)
 
Optionaloperator= (const Optional &O)
 
void reset ()
 
const T * getPointer () const
 
T * getPointer ()
 
const T & getValue () const LLVM_LVALUE_FUNCTION
 
T & getValue () LLVM_LVALUE_FUNCTION
 
 operator bool () const
 
bool hasValue () const
 
const T * operator-> () const
 
T * operator-> ()
 
const T & operator* () const LLVM_LVALUE_FUNCTION
 
T & operator* () LLVM_LVALUE_FUNCTION
 
template<typename U >
LLVM_CONSTEXPR T getValueOr (U &&value) const LLVM_LVALUE_FUNCTION
 

Static Public Member Functions

static Optional create (const T *y)
 

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