20.11
|
The default implementation is the non-reference case. More...
#include <Optional.hpp>
Public Types | |
using | Base = OptionalBase |
Public Member Functions | |
OptionalReferenceSwitch () noexcept | |
OptionalReferenceSwitch (EmptyOptional) noexcept | |
OptionalReferenceSwitch (const T &value) | |
template<class... Args> | |
OptionalReferenceSwitch (ConstructInPlace, Args &&... args) | |
OptionalReferenceSwitch (const OptionalReferenceSwitch &other) | |
OptionalReferenceSwitch & | operator= (const T &value) |
OptionalReferenceSwitch & | operator= (const OptionalReferenceSwitch &other) |
OptionalReferenceSwitch & | operator= (EmptyOptional) |
~OptionalReferenceSwitch () | |
void | reset () |
const T & | value () const |
T & | value () |
![]() | |
OptionalBase () noexcept | |
bool | has_value () const noexcept |
operator bool () const noexcept | |
Conversion to bool, so can be used in if-statements and similar contexts expecting a bool. More... | |
Additional Inherited Members | |
![]() | |
OptionalBase (bool hasValue) noexcept | |
![]() | |
bool | m_HasValue |
The default implementation is the non-reference case.
This has an unsigned char array for storing the optional value which is in-place constructed there.
Definition at line 81 of file Optional.hpp.
using Base = OptionalBase |
Definition at line 84 of file Optional.hpp.
|
inlinenoexcept |
Definition at line 86 of file Optional.hpp.
|
inlinenoexcept |
Definition at line 87 of file Optional.hpp.
|
inline |
Definition at line 89 of file Optional.hpp.
|
inline |
Definition at line 96 of file Optional.hpp.
|
inline |
Definition at line 102 of file Optional.hpp.
|
inline |
Definition at line 132 of file Optional.hpp.
|
inline |
Definition at line 108 of file Optional.hpp.
|
inline |
Definition at line 115 of file Optional.hpp.
|
inline |
Definition at line 126 of file Optional.hpp.
|
inline |
|
inline |
Definition at line 146 of file Optional.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::GetBiasDataType(), armnnUtils::GetPerAxisParams(), ConnectionAcknowledgedCommandHandler::operator()(), OptionalReferenceSwitch< std::is_reference< int32_t >::value, int32_t >::operator=(), PeriodicCounterSelectionCommandHandler::PeriodicCounterSelectionCommandHandler(), armnnUtils::Permuted(), PopulateTensorWithData(), PopulateTensorWithDataGeneric(), CounterDirectory::RegisterCounter(), CounterDirectory::RegisterCounterSet(), CounterDirectory::RegisterDevice(), SerializerVisitor::VisitConvolution2dLayer(), SerializerVisitor::VisitDepthwiseConvolution2dLayer(), SerializerVisitor::VisitFullyConnectedLayer(), SerializerVisitor::VisitQuantizedLstmLayer(), and SerializerVisitor::VisitTransposeConvolution2dLayer().
|
inline |
Definition at line 157 of file Optional.hpp.