Skip to content

Add reset() method to ValueContainer #36

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

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Add reset() method to ValueContainer #36

merged 1 commit into from
Oct 16, 2024

Conversation

rsore
Copy link
Owner

@rsore rsore commented Oct 16, 2024

Description

In this development branch I have added a utility function in the ValueContainer class, reset(). It simply resets the internal tuple to contain all std::nullopt.

This utility function does not yet serve any purpose for the Parser at this time, but will likely be necessary later. I want the parser itself to be re-usable to parse several sets of arguments, and instead of creating a new ValueContainer each time, I would prefer to just reset the ValueContainer.

How Has This Been Tested?

I have implemented unit tests for the already existing ValueContainer functions, as well as for the new reset() function.

@rsore rsore added feature New feature improvement Improvement to existing feature labels Oct 16, 2024
Copy link

clang-tidy review says "All clean, LGTM! 👍"

@rsore rsore merged commit dafb319 into main Oct 16, 2024
5 checks passed
@rsore rsore deleted the value-container-tests branch October 16, 2024 23:14
rsore added a commit that referenced this pull request Oct 20, 2024
Add reset() method to ValueContainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature improvement Improvement to existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant