[Webkit-unassigned] [Bug 36849] Add zero() method to Vector class
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 30 16:12:50 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=36849
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|New Bugs |Web Template Framework
CC| |ap at webkit.org
--- Comment #3 from Alexey Proskuryakov <ap at webkit.org> 2010-03-30 16:12:50 PST ---
GCC optimizes std::fill() using a memset when possible.
/**
* @brief Fills the range [first,last) with copies of value.
* @param first A forward iterator.
* @param last A forward iterator.
* @param value A reference-to-const of arbitrary type.
* @return Nothing.
*
* This function fills a range with copies of the same value. For one-byte
* types filling contiguous areas of memory, this becomes an inline call to
* @c memset.
*/
I think it's even done at two levels - both as a specialization in STL, and a
compiler optimization for those engineers who use explicit loops.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list