Qx v0.5.8
Qt Extensions Library
|
The qx-concepts header file provides a set of various object-like and function-like macros that are designed to minimize the syntactic footprint of common tasks. More...
Go to the source code of this file.
Macros | |
#define | QBAL QByteArrayLiteral |
#define | QSL QStringLiteral |
#define | QX_FOR_EACH(macro, ...) __VA_OPT__(__QX_MACRO_EVALUATE(__QX_FOR_EACH_APPLY_AND_ITERATE(macro, __VA_ARGS__))) |
#define | QX_FOR_EACH_DELIM(macro, ...) __VA_OPT__(__QX_MACRO_EVALUATE(__QX_FOR_EACH_APPLY_AND_ITERATE_DELIM(macro, __VA_ARGS__))) |
#define | QX_SCOPED_ENUM_HASH_FUNC(T) |
#define QBAL QByteArrayLiteral |
This convenience macro is an alias for QByteArrayLiteral.
#define QSL QStringLiteral |
This convenience macro is an alias for QStringLiteral.
#define QX_FOR_EACH | ( | macro, | |
... ) __VA_OPT__(__QX_MACRO_EVALUATE(__QX_FOR_EACH_APPLY_AND_ITERATE(macro, __VA_ARGS__))) |
This function-like macro acts like a fold expression for its variadic arguments. It produces the result of calling the macro macro once for each argument that follows.
For example:
#define QX_FOR_EACH_DELIM | ( | macro, | |
... ) __VA_OPT__(__QX_MACRO_EVALUATE(__QX_FOR_EACH_APPLY_AND_ITERATE_DELIM(macro, __VA_ARGS__))) |
Same as QX_FOR_EACH(), but a comma in placed between each resultant element.
#define QX_SCOPED_ENUM_HASH_FUNC | ( | T | ) |
This function-like macro defines a qHash() overload for the provided scoped-enum type T.