a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
556 B
C#
30 lines
556 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public class OrderedMultiDictionary<T,U>
|
|
{
|
|
private RedBlackTree<KeyValuePair<T,U>> tree;
|
|
|
|
private IEnumerator<T> EnumerateKeys (RedBlackTree<KeyValuePair<T,U>>.RangeTester rangeTester)
|
|
{
|
|
tree.EnumerateRange (rangeTester);
|
|
yield break;
|
|
}
|
|
}
|
|
|
|
internal class RedBlackTree<S>
|
|
{
|
|
public delegate int RangeTester (S item);
|
|
|
|
public IEnumerable<S> EnumerateRange (RangeTester rangeTester)
|
|
{
|
|
yield break;
|
|
}
|
|
}
|
|
|
|
class X
|
|
{
|
|
public static void Main ()
|
|
{ }
|
|
}
|