Custom template memcmp vs C memcmp
<pre><code>template &lt;typename T&gt;
int custom_memcmp(const T* a, const T* b, std::size_t n);
</code></pre>

<p>Would this be faster than C's memcmp? </p>

<p>If sizeof(T) != 1: it will perform less iterations and it can compare the values as their actual types. For example I'd except comparing two 'long long's directly to be faster than comparing two 8-byte buffers.</p>
