Even though overuse of getter and setter functions can be frowned upon, they can
help a lot if you're looking to provide a intuitive api. However the overhead
the additional function call introduces in undesirable. Thankfully, there's the
inline
keyword. It tells the compiler to replace each invokation of the
function with the body of the function.
struct Foo {
int m_number = 123;