Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #87131

Re: Is Copy-and-swap idiom too slow in assignment operator?

From JiiPee <kerrttuPoistaTama11@gmail.com>
Newsgroups comp.lang.c++
Subject Re: Is Copy-and-swap idiom too slow in assignment operator?
Date 2022-10-22 16:02 +0300
Organization A noiseless patient Spider
Message-ID <tj0pkn$thva$1@dont-email.me> (permalink)
References <tj0448$rtfp$3@dont-email.me> <cone.1666439436.510136.302877.1004@monster.email-scan.com>

Show all headers | View raw


On 22/10/2022 14:50, Sam wrote:
> For a simple class, copy/swap is an overkill.

could test how much slower it is. But its simple and elegant. And no 
need to then repeat code.

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is Copy-and-swap idiom too slow in assignment operator? JiiPee <kerrttuPoistaTama11@gmail.com> - 2022-10-22 09:55 +0300
  Re: Is Copy-and-swap idiom too slow in assignment operator? Andrey Tarasevich <andreytarasevich@hotmail.com> - 2022-10-22 02:16 -0700
  Re: Is Copy-and-swap idiom too slow in assignment         operator? Sam <sam@email-scan.com> - 2022-10-22 07:50 -0400
    Re: Is Copy-and-swap idiom too slow in assignment operator? JiiPee <kerrttuPoistaTama11@gmail.com> - 2022-10-22 16:02 +0300
  Re: Is Copy-and-swap idiom too slow in assignment operator? Juha Nieminen <nospam@thanks.invalid> - 2022-10-24 07:10 +0000
    Re: Is Copy-and-swap idiom too slow in assignment operator? JiiPee <kerrttuPoistaTama11@gmail.com> - 2022-10-24 17:38 +0300
      Re: Is Copy-and-swap idiom too slow in assignment operator? Öö Tiib <ootiib@hot.ee> - 2022-10-29 11:59 -0700

csiph-web