Skip to content
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

Cleanup vector a bit #1771

Merged
merged 15 commits into from
Jun 29, 2021
Merged

Cleanup vector a bit #1771

merged 15 commits into from
Jun 29, 2021

Conversation

miscco
Copy link
Contributor

@miscco miscco commented Mar 23, 2021

These are some cleanups that I found when looking at vector

  1. We have special helper functions _Uninitialized_meow that are only used inside vector. However there was an additional indirection whose only purpose was to add _Getal()

  2. Cleaned up and generalized the construction of a vector with known size

@miscco miscco requested a review from a team as a code owner March 23, 2021 10:08
@CaseyCarter CaseyCarter added the enhancement Something can be improved label Mar 23, 2021
stl/inc/vector Show resolved Hide resolved
stl/inc/vector Show resolved Hide resolved
@miscco

This comment has been minimized.

stl/inc/vector Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Show resolved Hide resolved
Copy link
Member

@barcharcraz barcharcraz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Still not thrilled with _Construct_n, but I'm OK if we merge that structure.

Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! All I noticed were minor issues so I'll validate and push changes.

stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
stl/inc/vector Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej removed their assignment Jun 16, 2021
@StephanTLavavej StephanTLavavej self-assigned this Jun 24, 2021
@StephanTLavavej StephanTLavavej merged commit a2e781b into microsoft:main Jun 29, 2021
@StephanTLavavej
Copy link
Member

Thanks for cleaning up <vector> a bit - cleaning up <bit> a vector wouldn't have made any sense! 🤪 😹

@miscco miscco deleted the cleanup_vector branch June 29, 2021 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants