C

Allocator Struct

template <typename T> struct Qul::PlatformInterface::Allocator

A memory allocator for use with the C++ standard containers. More...

Header: #include <platforminterface/allocator.h>
Since: Qt Quick Ultralite (Platform) 1.8

Detailed Description

This enables the C++ standard containers to use Qul::Platform::qul_malloc and Qul::Platform::qul_free instead of the default memory allocation functions.

For example:

std::vector<MyData, Qul::PlatformInterface::Allocator<MyData> > vector;

See also https://en.cppreference.com/w/cpp/named_req/Allocator.

Available under certain Qt licenses.
Find out more.