How to compare two vectors, in C++
<p>This is my code:</p>

<pre><code>#include &lt;algorithm&gt;
void f() {
    int[] a = {1, 2, 3, 4};
    int[] b = {1, 2, 100, 101};
    // I want to do something like this:
    // int* found = compare(a[0], a[3], b[0]);
    // in order to get a pointer to a[2]
}
</code></pre>

<p>Maybe I missed this algorithm in the manual… Please help :)</p>
