While doing some nw programming, I came across the following dilemma:
I am doing something like:
static const string my_ip_prefix = "111.222.233";
if (equal(my_ip_prefix .begin(), my_ip_prefix .end(), ip_list[i].begin())))
{
}
If I know that the IP addresses from ip_listmay be shorter than my_ip_prefix, but in this case they differ from my_ip_prefixat least one position in them, is it safe to call equal? Example: is it safe to call it using ip"10.20.30.4"
Does Aka perform a standard check of sequential checks, starting from the front and break;at std::equal?
It might seem obvious that A is yes, but maybe ISO ppl wanted to provide implementation options for parallelization ...