Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qarraydatapointer.h File Reference
#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:
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:24

Definition at line 497 of file qarraydatapointer.h.

Function Documentation

◆ swap()

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

Definition at line 485 of file qarraydatapointer.h.

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

+ Here is the call graph for this function: