Comment Comment by roel_v To save those who, like me, were going to comment 'that would violate the standard because std::string::size is required to be O(1) complexity' a Google - the standard recommends but doesn't require that. parent roel_v 6 years ago