What does std::includes actually do?
I posted this in the cpplang slack, and Casey Carter responded: The description of the algorithm in the standard is defective. The intent is to determine [if] every element in the needle appears in order in the haystack. [The algorithm it actually performs is:] “Returns true if the intersection of sorted sequences R1 and R2 … Read more