Qx v0.7
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.
Go to the source code of this file.
Macros | |
#define | QBAL QByteArrayLiteral |
#define | QSL QStringLiteral |
#define | QX_EVAL_EACH(arg, ...) |
#define | QX_FOR_EACH(macro, ...) |
#define | QX_FOR_EACH_DELIM(macro, ...) |
#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_EVAL_EACH | ( | arg, | |
... ) |
This function-like macro acts like a fold expression for its variadic arguments. It produces the result of calling all trailing macro functions with the argument arg.
For example:
#define QX_FOR_EACH | ( | macro, | |
... ) |
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, | |
... ) |
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.