Skip to content

Cleanup vector a bit - #1771

Merged
Stephan T. Lavavej (StephanTLavavej) merged 15 commits into
microsoft:mainfrom
miscco:cleanup_vector
Jun 29, 2021
Merged

Cleanup vector a bit#1771
Stephan T. Lavavej (StephanTLavavej) merged 15 commits into
microsoft:mainfrom
miscco:cleanup_vector

Conversation

@miscco

Copy link
Copy Markdown
Contributor

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

@CaseyCarter Casey Carter (CaseyCarter) added the enhancement Something can be improved label Mar 23, 2021
Comment thread stl/inc/vector
Comment thread stl/inc/vector
@miscco

This comment has been minimized.

Comment thread stl/inc/vector
Comment thread stl/inc/vector Outdated
Comment thread stl/inc/vector Outdated
Comment thread stl/inc/vector Outdated
Comment thread stl/inc/vector

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

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.

Comment thread stl/inc/vector Outdated
Comment thread stl/inc/vector Outdated
Comment thread stl/inc/vector
Comment thread stl/inc/vector
Comment thread stl/inc/vector Outdated
Comment thread stl/inc/vector Outdated
Comment thread stl/inc/vector Outdated
Comment thread stl/inc/vector Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

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

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