Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
optional.h File Reference
Go to the source code of this file.
Data Structures | |
class | nullopt_t |
A null option type. More... | |
class | optional_exception |
Exception for optional. More... | |
class | optional_invalid |
Invalid exception for optional. More... | |
class | optional< T > |
An optional type. More... | |
Namespaces | |
namespace | etl |
A multimap with the capacity defined at compile time. | |
Functions | |
template<typename T > | |
void | swap (etl::optional< T > &lhs, etl::optional< T > &rhs) |
Swaps the values. | |
template<typename T > | |
bool | operator== (const etl::optional< T > &lhs, const etl::optional< T > &rhs) |
Equality operator. | |
template<typename T > | |
bool | operator< (const etl::optional< T > &lhs, const etl::optional< T > &rhs) |
Less than operator. | |
template<typename T > | |
bool | operator== (const etl::optional< T > &lhs, etl::nullopt_t) |
Equality operator. | |
template<typename T > | |
bool | operator== (etl::nullopt_t, const etl::optional< T > &rhs) |
Equality operator. | |
template<typename T > | |
bool | operator< (const etl::optional< T > &lhs, etl::nullopt_t) |
Less than operator. | |
template<typename T > | |
bool | operator< (etl::nullopt_t, const etl::optional< T > &rhs) |
Less than operator. | |
template<typename T > | |
bool | operator== (const etl::optional< T > &lhs, const T &rhs) |
Equality operator. | |
template<typename T > | |
bool | operator== (const T &value, const etl::optional< T > &rhs) |
Equality operator. | |
template<typename T > | |
bool | operator< (const etl::optional< T > &lhs, const T &rhs) |
Less than operator. | |
template<typename T > | |
etl::optional< typename etl::decay< T >::type > | make_optional (T &value) |
Make an optional. | |
Variables | |
const nullopt_t | nullopt = {} |
A null option. |
Detailed Description
Definition in file optional.h.
Function Documentation
etl::optional<typename etl::decay<T>::type> make_optional | ( | T & | value ) |
Make an optional.
Definition at line 438 of file optional.h.
bool operator< | ( | const etl::optional< T > & | lhs, |
const etl::optional< T > & | rhs | ||
) |
Less than operator.
Definition at line 355 of file optional.h.
bool operator< | ( | const etl::optional< T > & | lhs, |
const T & | rhs | ||
) |
Less than operator.
Definition at line 429 of file optional.h.
bool operator< | ( | const etl::optional< T > & | lhs, |
etl::nullopt_t | |||
) |
Less than operator.
Definition at line 393 of file optional.h.
bool operator< | ( | etl::nullopt_t | , |
const etl::optional< T > & | rhs | ||
) |
Less than operator.
Definition at line 402 of file optional.h.
bool operator== | ( | const T & | value, |
const etl::optional< T > & | rhs | ||
) |
Equality operator.
Definition at line 420 of file optional.h.
bool operator== | ( | etl::nullopt_t | , |
const etl::optional< T > & | rhs | ||
) |
Equality operator.
Definition at line 384 of file optional.h.
bool operator== | ( | const etl::optional< T > & | lhs, |
etl::nullopt_t | |||
) |
Equality operator.
Definition at line 375 of file optional.h.
bool operator== | ( | const etl::optional< T > & | lhs, |
const T & | rhs | ||
) |
Equality operator.
Definition at line 411 of file optional.h.
bool operator== | ( | const etl::optional< T > & | lhs, |
const etl::optional< T > & | rhs | ||
) |
Equality operator.
Definition at line 335 of file optional.h.
void swap | ( | etl::optional< T > & | lhs, |
etl::optional< T > & | rhs | ||
) |
Swaps the values.
Definition at line 326 of file optional.h.
Generated on Tue Jul 12 2022 14:05:47 by
