Search

January 28, 2008
Announce »
...body should then be something like
    buf.swap( n, n + Rand(buf.length - n) );
(assuming...
January 26, 2008
Announce »
...r % (n + 1);	// pick element to swap with

	// swap [n] and [j]
	auto tmp = files...
January 25, 2008
Announce »
...remember reading a criticism of the shuffle/swap algorithm and the fix a while back...
January 25, 2008
Announce »
...auto j = std.random.rand() % files.length;
	// swap [i] and [j]
	auto tmp = files[i...
January 02, 2008
General »
...myarray;

you should not be able to swap members.  But there should still be a...
December 31, 2007
General »
...array of const classes?

const(C)[] myarray;

...
// swap two items i and j
auto tmp...
December 29, 2007
Announce »
...project to allow the software to hot-swap its core (no file backing/locking and...
December 18, 2007
c++.stlsoft »
...all 4 classes

 + stlsoft::fixed_array_?d::swap() methods for all 4 classes

Fixes:
======

 STLSoft...
December 16, 2007
c++.stlsoft »
...and swap() methods, and
have done almost the same things as you for swap(). :-)

These...
December 16, 2007
c++.stlsoft »
My implementation of swap was buggy, although I couldn't quite figure out where it...
143 144 145 146 147 148 149 150 151 152 153
Next ›   Last »