Replies: 1 comment
-
I think the distinction there is between getters as accessors for one of many fields such as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The beginning of the C-GETTER guideline states:
However, all the guideline examples from the standard library have the
get_
prefix:representing only the following rule of the guideline:
Suggested examples of non-
get_
getters from the standard library:std::vec::Vec::len
std::thread::JoinHandle::thread
std::panic::Location::file
Beta Was this translation helpful? Give feedback.
All reactions