from: C++ Programming Guidelines (cginternals.github.io)
When naming accessors within classes, non-trivial getters and queries, i.e., those that perform calculations, you should prepended get. All other getters have no prefix and setters have the set prefix.
get
set
Powered by: C++博客 Copyright © 金慶