Ruud van Silfhout wrote:
Hi,

I have made an extension for the reverse function in std_vector.hh. The code suggests to implement template specialisation for reverse vector<int>.

On second thought, I have reservations whether this is a useful idea, it adds quite a lot of code, and your memrev function invokes memcpy 3 times on 4 to 10 byte objects. This is unlikely to be more efficient than simply assigning int, double and float objects directly as happens for the default implementation.

--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to