Bug 22231 – std.algorithm.mutation is missing an uninitializedCopy implementation

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-08-21T15:40:55Z
Last change time
2024-12-01T16:39:10Z
Assigned to
No Owner
Creator
João Lourenço
Moved to GitHub: phobos#10472 →

Comments

Comment #0 by jlourenco5691 — 2021-08-21T15:40:55Z
The Phobos std.algorithm.mutation has an implementation for uninitializedFill but it does not have one for uninitializedCopy. This function is useful for constructing elements emplace in a target buffer using copies from a source. Similar to uninitializedFill which falls back to fill in certain conditions, uninitializedCopy is useful for element types that define custom copy constructors. The result of the copy constructor would be used to construct the element emplace in the target buffer. For all other types, it would be the same as a plain copy.
Comment #1 by robert.schadek — 2024-12-01T16:39:10Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10472 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB