niXman 2014-11-10 01:19:
Ion GaztaƱaga 2014-11-10 00:44:
I don't think using std::equal will guarantees the use of memcmp. At least, the last time I checked some major implementations didn't use it and others only for char types. I've seen libstdc++ uses memcmp for non-char types, maybe that could be a good example to follow.
Hmm.. std::equal()[1] uses __equal_aux()[2], which uses '__builtin_memcmp()' for: https://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/include/bits/stl_algo...
[1] https://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/include/bits/stl_algo... [2] https://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/include/bits/stl_algo...
ping? -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingw-w64/ ___________________________________________________ Another online IDE: http://liveworkspace.org/