-
Notifications
You must be signed in to change notification settings - Fork 19
Create safeGet
and safeSet
for indexable types
#564
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
Changes from 8 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
5a492fd
Add ability to check if a type accepts an whole number index
jhp-lanl 02a7396
Add safeSet() and safeGet() helpers
jhp-lanl 8895d80
Add safeGet and safeSet that don't take numerical indices
jhp-lanl 58a920b
Switch to safeGet and safeSet for indexable types
jhp-lanl fce8f7c
Whoops... forgot comment
jhp-lanl 4959500
Clang format
jhp-lanl c2b1dbb
Update changelog
jhp-lanl 589e1dc
Update doc
jhp-lanl fd74c25
Make functions PORTABLE and add required get/set
jhp-lanl a3d71fc
Make code more DRY and rename things a bit
jhp-lanl 856531f
Add int index check
jhp-lanl 220df73
Rename safeGet/Set to SafeGet/Set and remove direct indexing or regular
jhp-lanl 271e52e
Make indexer const correct
jhp-lanl 63d5a39
Rename safeGet/Set
jhp-lanl 8a893a7
Clang format
jhp-lanl d6a9f68
Switch to template-based decision to use integer index or not
jhp-lanl cf8bf93
Whoops... forgot to return
jhp-lanl 2d4153a
Clang format
jhp-lanl 0a4baa1
Add docs for SafeMustGet() and SafeMustSet()
jhp-lanl 4c89631
Get rid of Get and have wrappers use GetSet. Also update comments and…
jhp-lanl 9d52960
Switch Get for Safe versions and expand tests
jhp-lanl 69b56ab
Merge branch 'main' of github.com:lanl/singularity-eos into jhp/spine…
jhp-lanl 0feb8e4
Remove last Get in favor of SafeSet
jhp-lanl c245728
Remove a few more instances of Get in favor of the Safe variety for I…
jhp-lanl 734d55b
Clang format
jhp-lanl efd9a9f
Whoops... void was a bad choice for a type index
jhp-lanl d8dbccc
Let's try an unreachable return to make decltype(auto) happy
jhp-lanl bfacaac
Add dependent_false_v for if constexpr static asserts
jhp-lanl 36d4286
Move throw into SafeGet/SafeSet wrappers and provide helpful compile …
jhp-lanl c783623
Can't test for a runtime throw when compile-time error will be used
jhp-lanl 232ecca
Small doc tweaks
jhp-lanl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.