qt5base-lts/tests/auto/corelib/tools/qarraydata
João Abecasis b59d831980 Introducing Q_ARRAY_LITERAL
This provides the same functionality as the specialized QStringLiteral
and QByteArrayLiteral, but on top of QArrayData.

The macro has two variations, variadic and simple. The variadic version
depends on compiler support for (C99) variadic macros and enables
static initialization of arrays of any POD data. Use of this macro is
not recommended on code or applications that need to work in
configurations where variadic macros are not supported.

The simple version is more portable and is enough to support the use
cases of QStringLiteral and QByteArrayLiteral, also providing a fallback
that allocates and copies data when static initialization is not
available.

Change-Id: I7154a24dcae4bbbd7d5978653f620138467830c5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-01-25 20:33:41 +01:00
..
qarraydata.pro SimpleVector as a test case for QArrayData 2011-12-07 02:01:42 +01:00
simplevector.h Introducing Q_ARRAY_LITERAL 2012-01-25 20:33:41 +01:00
tst_qarraydata.cpp Introducing Q_ARRAY_LITERAL 2012-01-25 20:33:41 +01:00