Is it possible to define both const and regular version of the function with a single definition? (using templates, auto, decltype, etc)
How do I remove code duplication between similar const and non-const member functions?