These member functions don't actually modify the input parameter, so we can make this explicit with the use of const.