Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qapplicationstatic.h File Reference

(86d801e352ded9d1fc5f02a18386c63012bce16d)

#include <QtCore/QMutex>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qglobalstatic.h>
#include <new>
+ Include dependency graph for qapplicationstatic.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QtGlobalStatic::ApplicationHolder< QAS >
 

Namespaces

namespace  QtGlobalStatic
 

Macros

#define Q_APPLICATION_STATIC(TYPE, NAME, ...)
 

Macro Definition Documentation

◆ Q_APPLICATION_STATIC

#define Q_APPLICATION_STATIC ( TYPE,
NAME,
... )
Value:
namespace { struct Q_QAS_ ## NAME { \
typedef TYPE QAS_Type; \
static void innerFunction(void *pointer) \
noexcept(noexcept(std::remove_cv_t<QAS_Type>(__VA_ARGS__))) \
{ \
new (pointer) QAS_Type(__VA_ARGS__); \
} \
}; } \
static QGlobalStatic<QtGlobalStatic::ApplicationHolder<Q_QAS_ ## NAME>> NAME;\
GLsizei const void * pointer
Definition qopenglext.h:384
const char * TYPE

Definition at line 72 of file qapplicationstatic.h.