// Less-than operator for use as a key in STL containers. bool URL::operator<(const URL& rhs) const { if (url_dirty) ConstructURL(); if (rhs.url_dirty) rhs.ConstructURL(); return url < rhs.url; }