C++ Standard Library includes() Sample

Description

includes() checks whether every member of a sorted sequence is a member of another sorted sequence. It implements the common set operation of checking whether a set is contained within another set.

Declaration

	template <class In, class In2>
	    bool includes(In, In, In2, In2);
	template <class In, class In2, class Cmp>
	    bool includes(In, In, In2, In2, Cmp);

Concept

The sample checks whether vec2 is contained within vec1 (yes), and then whether vec1 is contained within vec2 (no).

Supported
Supported
Supported