Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qapplicationstatic.h File Reference

(f2fc78d6b680494359f7f94db319523a9c78c234)

#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 79 of file qapplicationstatic.h.