Created
November 9, 2016 13:46
-
-
Save Marenz/6854ca8c4ff4575bf8b0d70813f33f7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int opApply ( scope int delegate ( T element ) @nogc dg ) const @nogc | |
{ | |
int forward ( size_t, ref T el ) @nogc | |
{ | |
return dg(el); | |
} | |
return (cast(SyncedArray!T)this).opApply(&forward); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment