<boost/url/url_view_base.hpp>
bool
operator==(
url_view_base const& u0,
url_view_base const& u1) noexcept;
The URLs are compared component by component as if they were first normalized.
url_view u0( "http://www.a.com/index.htm" );
url_view u1( "http://www.a.com/index.htm" );
assert( u0 == u1 );
url a(u0);
a.normalize();
url b(u1);
b.normalize();
return a.buffer() == b.buffer();
Linear in min( u0.size(), u1.size() )
Throws nothing
true
if u0 == u1
Name | Description |
---|---|
u0 | The first url to compare |
u1 | The second url to compare |