Device interface library for multiple platforms including Mbed.

Dependents:   DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#

Embed: (wiki syntax)

« Back to documentation index

Optional< T > Class Template Reference

Optional< T > Class Template Reference

Optional value container similar to std::optional. More...

#include <Optional.hpp>


Detailed Description

template<typename T>
class MaximInterfaceCore::Optional< T >

Optional value container similar to std::optional.

To prevent the need for aligned storage, this implementation imposes that types must be DefaultConstructible, CopyConstructible, and CopyAssignable. No exceptions are thrown when accessing a valueless Optional.

Definition at line 50 of file Optional.hpp.