Can you give an example of how and where you call these functions?

By the way, such functions are best made const.