C
Qul::PlatformInterface::Allocator Struct
template <typename T> struct Qul::PlatformInterface::Allocator一款用于 C++ 标准容器的内存分配器。更多内容...
| Header: | #include <platforminterface/allocator.h> |
| Since: | Qt Quick Ultralite (Platform) 1.8 |
详细说明
该组件使C++标准容器能够使用Qul::Platform::qul_malloc 和Qul::Platform::qul_free ,而非默认的内存分配函数。
例如:
std::vector<MyData, Qul::PlatformInterface::Allocator<MyData> > vector;
另请参阅 https://en.cppreference.com/w/cpp/named_req/Allocator。
在某些 Qt 许可下可用。
了解更多。