WPILibC++
2019.1.1-beta-1-1-g0a2ab4f
|
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 | |
Optional & | operator= (T &&y) |
Optional & | operator= (Optional &&O)=default |
template<typename... ArgTypes> | |
void | emplace (ArgTypes &&...Args) |
Create a new object by constructing it in place with the given arguments. | |
Optional & | operator= (const T &y) |
Optional & | operator= (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) |