Skip to content

Instantly share code, notes, and snippets.

@jpf91
Created February 11, 2013 18:14
Show Gist options
  • Save jpf91/4756308 to your computer and use it in GitHub Desktop.
Save jpf91/4756308 to your computer and use it in GitHub Desktop.
class RedBlackTree(alias less)
{
int a;
struct Range
{
auto @property empty()
{
return a;
}
}
Range opSlice()
{
return Range();
}
}
void main()
{
void a(){}
auto t = new RedBlackTree!(a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment