Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qarraydatapointer.h File Reference

(97a6512724aa686b160cfe04ef5d4ec9b2ae4a1e)

#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
[0]
static Q_NODISCARD_CTOR QArrayDataPointer fromRawData(const T *rawData, qsizetype length) noexcept
Definition moc.h:33

Definition at line 534 of file qarraydatapointer.h.

Function Documentation

◆ swap()

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

Definition at line 522 of file qarraydatapointer.h.