WPILibC++  2018.4.1-20180729123227-1139-ga11fcb6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::Optional< T > Class Template Reference

Public Types

using value_type = T
 

Public Member Functions

constexpr Optional (NoneType)
 
 Optional (const T &y)
 
 Optional (const Optional &O)=default
 
 Optional (T &&y)
 
 Optional (Optional &&O)=default
 
Optionaloperator= (T &&y)
 
Optionaloperator= (Optional &&O)=default
 
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)=default
 
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 >
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: