[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reverse in std_vector.hh

From: Han-Wen Nienhuys
Subject: Re: Reverse in std_vector.hh
Date: Fri, 08 Sep 2006 15:40:23 +0200
User-agent: Thunderbird (X11/20060905)

Ruud van Silfhout wrote:

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 - address@hidden -

LilyPond Software Design
 -- Code for Music Notation

reply via email to

[Prev in Thread] Current Thread [Next in Thread]