This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: valarray assignment
- To: <libstdc++ at gcc dot gnu dot org>
- Subject: Re: valarray assignment
- From: Philip Charlton <charlton at ligo dot caltech dot edu>
- Date: Wed, 10 Oct 2001 11:28:19 -0700 (PDT)
> Hi,
>
> as far as I can tell
>
sent this by mistake...
what I was going to ask was, in valarray assignment it seems that no check
for self-assignment is made, instead __valarray_copy() is called which
immediately calls memcpy() to do the copying. Was this choice made
for efficiency, to avoid the overhead of an "if" statement?
Philip