template <class InputIterator1, class InputIterator2> bool includes ( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2 ); template <class InputIterator1, class InputIterator2, class Compare> bool includes ( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, Compare comp );
[first1,last1)
contains all the elements in the sorted range [first2,last2)
.operator<
for the first version, and comp for the second. Two elements, a and b are considered equivalent if (!(a<b) && !(b<a))
or if (!comp(a,b) && !comp(b,a))
.operator<
or comp).
|
|
[first1,last1)
, which contains all the elements between first1 and last1, including the element pointed by first1 but not the element pointed by last1.[first2,last2)
.bool
. The value returned indicates whether the element passed as first argument is considered to go before the second in the specific strict weak ordering it defines.true
if every element in the range [first2,last2)
is contained in the range [first1,last1)
, false
otherwise.[first2,last2)
is an empty range, the result is unspecified.[first2,last2)
is an empty range, the function returns true
.
|
|
container includes continent! container includes continent! |
2*(count1+count2)-1
comparisons (where countX is the distance between firstX and lastX).