I am expecting a std::fill on an continuous container, say std::vector, will automatically compiled to a call of memset. However, when I tried the following code
<
The standard doesn't force implementors to use memset(). But gcc for example does happen to use memset() for std::fill() on containers of char.
memset()
std::fill()
char