4 ms·
The "doc" here are comments on the std::fill function in gcc, not the actual reference doc for std::fill. It isn't even correct: 1) I find no evidence wmemset
by BeeOnRope 7y ago
The "doc" here are comments on the std::fill function in gcc, not the actual reference doc for std::fill.
It isn't even correct:
1) I find no evidence wmemset is ever used (e.g., for wchar_t).
2) It doesn't work for "char types", as in the example in this post: the memory is char type but when literal zero is passed, it breaks.
- aidenn0 7y agoOne of my favorite truisms about reading code is "comments are the only part of the code you can be sure aren't tested"