VST 3 SDK VST 3.7
SDK for developing VST plug-in
Optional< T > Struct Template Reference

#include <optional.h>

Public Member Functions

 Optional () noexcept
 
 Optional (const T &v) noexcept
 
 Optional (T &&v) noexcept
 
 Optional (Optional &&other) noexcept
 
Optionaloperator= (Optional &&other) noexcept
 
 operator bool () const noexcept
 
const T & operator* () const noexcept
 
const T * operator-> () const noexcept
 
T & operator* () noexcept
 
T * operator-> () noexcept
 
T && value () noexcept
 
const T & value () const noexcept
 
void swap (T &other) noexcept
 

Constructor & Destructor Documentation

◆ Optional() [1/4]

Optional ( )
inlinenoexcept

◆ Optional() [2/4]

Optional ( const T &  v)
inlineexplicitnoexcept

◆ Optional() [3/4]

Optional ( T &&  v)
inlinenoexcept

◆ Optional() [4/4]

Optional ( Optional< T > &&  other)
inlinenoexcept

Member Function Documentation

◆ operator=()

Optional & operator= ( Optional< T > &&  other)
inlinenoexcept

◆ operator bool()

operator bool ( ) const
inlineexplicitnoexcept

◆ operator*() [1/2]

const T & operator* ( ) const
inlinenoexcept

◆ operator->() [1/2]

const T * operator-> ( ) const
inlinenoexcept

◆ operator*() [2/2]

T & operator* ( )
inlinenoexcept

◆ operator->() [2/2]

T * operator-> ( )
inlinenoexcept

◆ value() [1/2]

T && value ( )
inlinenoexcept

◆ value() [2/2]

const T & value ( ) const
inlinenoexcept

◆ swap()

void swap ( T &  other)
inlinenoexcept
Empty

Copyright © Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.