Random Suggestion: Swap Operator <=>?
Bill Baxter
wbaxter at gmail.com
Thu Jul 16 17:23:22 PDT 2009
On Thu, Jul 16, 2009 at 5:14 PM, Julian Salazar<julian at ifeelrandom.com> wrote:
> I'm wondering, who here would use a swap operator if it were available?
> ...
> even a template in the standard library for it would be cool (or did I miss
> something?). Or am I being deluded? :)
Yes, I think you've just missed something:
http://www.digitalmars.com/d/2.0/phobos/std_algorithm#swap
--bb
More information about the Digitalmars-d
mailing list