December 20, 2009 General » QSort in D: is this best? | |||
|---|---|---|---|
| |||
...array[from] >= pivot && array[to-1] < pivot)
swap(array[from], array[to-1]);
if (array... | |||
December 17, 2009 General » Re: auto ref | |||
|---|---|---|---|
| |||
...same scope, so you can swap a and b void swap(scope?(int)* a, scope... | |||
December 09, 2009 Issues » [Issue 3481] PATCH: opPow(), x ^^ y as a power operator | |||
|---|---|---|---|
| |||
...nom ^^= b;
denom ^^= b;
if (b < 0) {
swap(nom, denom);
}
return this;
}
I have also... | |||
December 08, 2009 Issues » [Issue 2928] Swap order of paramaters for std.range's "take" | |||
|---|---|---|---|
| |||
http://d.puremagic.com/issues/show_bug.cgi?id=2928 Lutger <lutger.blijdestijn@gmail.com... | |||
December 06, 2009 Druntime » [D-runtime] Adding atomic ops to Druntime | |||
|---|---|---|---|
| |||
...rel) } (atomicStoreIf is equivalent to atomic_compare_swap in C++) The Atomic struct could probably... | |||
December 03, 2009 General » Re: should postconditions be evaluated even if Exception is thrown? | |||
|---|---|---|---|
| |||
...case of array sorting, if you use swap() throughout against elements of the array, the... | |||
November 29, 2009 c++.stlsoft » Re: memory_mapped_file with no default ctor | |||
|---|---|---|---|
| |||
BTW, having the (helpful) swap() method already makes this a "non-pure" immutable RAII, doesn... | |||
November 28, 2009 c++.stlsoft » Re: memory_mapped_file with no default ctor | |||
|---|---|---|---|
| |||
...we got here all is well... tmp.swap(myWAVFile_); // 3. then... every time I want... | |||
November 26, 2009 c++.stlsoft » memory_mapped_file with no default ctor | |||
|---|---|---|---|
| |||
...variable to open the file and then swap. or 2. If memory_mapped_file had... | |||
November 17, 2009 General » Re: Should the comma operator be removed in D2? | |||
|---|---|---|---|
| |||
...t mind. you'd also have to swap the precedence of assignment and comma, or... | |||
Copyright © 1999-2021 by the D Language Foundation