L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
cxx::Elide_dtor< T > Class Template Reference

Wrapper class to remove destructor calls. More...

#include <elide_dtor>

Collaboration diagram for cxx::Elide_dtor< T >:

Detailed Description

template<typename T>
class cxx::Elide_dtor< T >

Wrapper class to remove destructor calls.

Use this class for global or static local objects that shall not be destructed. This can save some code size if the destructor of T is not trivial. It also prevents calls to atexit() at runtime.

Attention
Be careful if you use Elide_dtor in the global scope. Even if T is trivially constructible, the wrapper will force the compiler to emit a static initializer!

Definition at line 28 of file elide_dtor.


The documentation for this class was generated from the following file: