Skip to content

[DNM] SE pitch: Initialization improvements for UnsafePointer and UnsafeBufferPointer (draft) #39981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from

Conversation

glessard
Copy link
Contributor

Draft implementation for the initialization improvements pitch.

@glessard glessard force-pushed the se-pointer-initialization branch 3 times, most recently from 995f61b to 25b65b0 Compare November 8, 2021 20:52
@glessard glessard force-pushed the se-pointer-initialization branch 2 times, most recently from c203911 to de9f5e5 Compare November 12, 2021 01:52
@glessard
Copy link
Contributor Author

@swift-ci please test macOS platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - de9f5e52fab5b3f74195c1fc17bbb3cb2052c1f9

@glessard
Copy link
Contributor Author

@swift-ci please test macOS platform

@glessard glessard force-pushed the se-pointer-initialization branch from de9f5e5 to 57f863a Compare November 12, 2021 18:00
@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - de9f5e52fab5b3f74195c1fc17bbb3cb2052c1f9

@glessard glessard force-pushed the se-pointer-initialization branch 2 times, most recently from 3427df4 to efa0f9e Compare November 15, 2021 20:05
- add initialization from a Collection
- assign to a UMBP from a Sequence or a Collection
- add `moveInitialize` and `moveAssign` to UMBP
- deinitialize UMBP
- add single-element memory state functions in a buffer
@glessard glessard force-pushed the se-pointer-initialization branch from efa0f9e to 0df55ac Compare November 15, 2021 22:13
@glessard glessard force-pushed the se-pointer-initialization branch from 0df55ac to 60728cf Compare November 25, 2021 20:47
@glessard
Copy link
Contributor Author

glessard commented Mar 1, 2022

Closing this, as I'm merging this with another pitch. The combined pitch will go live soon.

@glessard glessard closed this Mar 1, 2022
@glessard glessard deleted the se-pointer-initialization branch March 1, 2022 16:48
@glessard
Copy link
Contributor Author

glessard commented Mar 1, 2022

Closed in favor of #41608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants