|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
A simple optional type. More...
#include "juce_Optional.h"
A simple optional type.
In new code, you should probably prefer using std::optional directly.
This is intended to stand-in for std::optional while JUCE's minimum supported language standard is lower than C++17. When the minimum language standard moves to C++17, this class will probably be deprecated, in much the same way that juce::ScopedPointer was deprecated in favour of std::unique_ptr after C++11.
This isn't really intended to be used by JUCE clients. Instead, it's to be used internally in JUCE code, with an API close-enough to std::optional that the types can be swapped with fairly minor disruption at some point in the future, but without breaking any public APIs.
@tags{Core}
Definition at line 56 of file juce_Optional.h.
|
noexcept |
Definition at line 68 of file juce_Optional.h.
|
noexcept |
Definition at line 71 of file juce_Optional.h.
|
noexcept |
Definition at line 76 of file juce_Optional.h.
|
noexcept |
Definition at line 81 of file juce_Optional.h.
| auto & juce::Optional< Value >::emplace | ( | Other &&... | other | ) |
Definition at line 110 of file juce_Optional.h.
|
noexcept |
Definition at line 132 of file juce_Optional.h.
|
explicitnoexcept |
Definition at line 131 of file juce_Optional.h.
| decltype(auto) juce::Optional< Value >::operator* | ( | ) |
Definition at line 128 of file juce_Optional.h.
| decltype(auto) juce::Optional< Value >::operator* | ( | ) | const |
Definition at line 129 of file juce_Optional.h.
| decltype(auto) juce::Optional< Value >::operator-> | ( | ) |
Definition at line 126 of file juce_Optional.h.
| decltype(auto) juce::Optional< Value >::operator-> | ( | ) | const |
Definition at line 127 of file juce_Optional.h.
|
noexcept |
Definition at line 94 of file juce_Optional.h.
|
noexcept |
Definition at line 102 of file juce_Optional.h.
|
noexcept |
Definition at line 86 of file juce_Optional.h.
| decltype(auto) juce::Optional< Value >::orFallback | ( | U && | fallback | ) | & |
Definition at line 138 of file juce_Optional.h.
| decltype(auto) juce::Optional< Value >::orFallback | ( | U && | fallback | ) | const & |
Definition at line 135 of file juce_Optional.h.
|
noexcept |
Definition at line 115 of file juce_Optional.h.
Definition at line 120 of file juce_Optional.h.
Definition at line 153 of file juce_Optional.h.