Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
optional.h File Reference

Optionally constructed object. More...

Include dependency graph for optional.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  roc::core::Optional< T, Size >
 Optionally constructed object. More...
 

Namespaces

 roc
 Root namespace.
 
 roc::core
 General-purpose building blocks and platform abstraction layer.
 

Functions

template<class T , size_t Size>
void * operator new (size_t size, roc::core::Optional< T, Size > &opt) throw ()
 Placement new for core::Optional. More...
 
template<class T , size_t Size>
void operator delete (void *, roc::core::Optional< T, Size > &) throw ()
 Placement delete for core::Optional. More...
 

Detailed Description

Optionally constructed object.

Definition in file optional.h.

Function Documentation

◆ operator delete()

template<class T , size_t Size>
void operator delete ( void *  ,
roc::core::Optional< T, Size > &   
)
throw (
)
inline

Placement delete for core::Optional.

Note
Compiler calls this if ctor throws in a placement new expression.

Definition at line 107 of file optional.h.

◆ operator new()

template<class T , size_t Size>
void* operator new ( size_t  size,
roc::core::Optional< T, Size > &  opt 
)
throw (
)
inline

Placement new for core::Optional.

Note
nothrow forces compiler to check for NULL return value before calling ctor.

Definition at line 98 of file optional.h.