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
qarraydatapointer.h File Reference

(95c7f88132646489bc17b8ea32facd76a19e19fa)

#include <QtCore/qarraydataops.h>
#include <QtCore/qcontainertools_impl.h>
#include <QtCore/q20functional.h>
#include <QtCore/q20memory.h>
+ Include dependency graph for qarraydatapointer.h:

Go to the source code of this file.

Classes

struct  QArrayDataPointer< T >
 

Macros

#define Q_ARRAY_LITERAL(Type, ...)
 

Functions

template<class T >
void swap (QArrayDataPointer< T > &p1, QArrayDataPointer< T > &p2) noexcept
 

Macro Definition Documentation

◆ Q_ARRAY_LITERAL

#define Q_ARRAY_LITERAL ( Type,
... )
Value:
([]() -> QArrayDataPointer<Type> { \
static Type const data[] = { __VA_ARGS__ }; \
return QArrayDataPointer<Type>::fromRawData(const_cast<Type *>(data), std::size(data)); \
}())
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static Q_NODISCARD_CTOR QArrayDataPointer fromRawData(const T *rawData, qsizetype length) noexcept
Definition moc.h:23

Definition at line 521 of file qarraydatapointer.h.

Referenced by qt_preset_gradient_stops().

Function Documentation

◆ swap()

template<class T >
void swap ( QArrayDataPointer< T > & p1,
QArrayDataPointer< T > & p2 )
inlinenoexcept

Definition at line 509 of file qarraydatapointer.h.

References p1, p2, and QPixmap::swap().

+ Here is the call graph for this function: