Add const to size() and total_size()