The overload taking a partition is already a const member function, so this one can be turned into one as well.