diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-05-04 15:22:01 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-05-09 22:54:05 +0200 |
| commit | b7780b5e5dfb0a90c52f2d5e9d85ae99f83265ab (patch) | |
| tree | 27198cfa279770baf8d86c18662a58ed8e809af2 /examples/opengl/doc/src | |
| parent | 9f0b4e18cd6929eb161e9526b496f9bb8a6e1c78 (diff) | |
Long live QtPrivate::CompactStorage<>
This is a generalization of QPrivateSlotObject's FunctionStorage.
Changes from the old API:
- uses a more neutral API (s/func/object/)
- preserves cv-qualifiers and value categories
- preserves constexpr'ness
- adds a disambiguation tag (e.g. for use in a compressed_pair).
The main feature is that it transparently uses the empty base-class
optimization to stow away empty classes without allocating separate
bytes for them.
To be used for the public QSlotObject and QGenericRunnable, at least,
so finally pulled the trigger and made it a separate component.
Change-Id: I9a13bbdd1dcf64aaf5fc7b2d40a60050d61800b6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/opengl/doc/src')
0 files changed, 0 insertions, 0 deletions
