Changeset 7448b81 in Lumiera
- Timestamp:
-
2026-05-14T20:46:06Z
(4 weeks ago)
- Author:
- Ichthyostega <prg@…>
- Branches:
- dev/play, documentation, integration
- Children:
- c4db787
- Parents:
- 3a49185
- git-author:
- Ichthyostega <prg@…> (14/05/26 17:30:22)
- git-committer:
- Ichthyostega <prg@…> (14/05/26 20:46:06)
- Message:
-
Library: improve initial population of ScopedCollection
This is a collection with unique-ownership,
and the ability to create all content objects in RAII style
from the constructor call, using a population functor.
It is often used to maintain a collection of resource handles,
and especially to start a series of threads (for testing).
With the variadic λ-captures from C++20, it is possible to rewrite
the most frequently used population functors to be easier to use.
Notably we can now bind constructor arguments, that will be passed
to each of the created elements — a prominent example being the
thread function when launching several threads. Furthermore,
I added a constructor variant that consumes a Lumiera Iterator.
Adding this kind of generic variants is possible now with C++20,
since overload resolution takes concepts into account.
-
(No files)
-