mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 09:38:01 +02:00
Reworked ref enumerators to support non-pointer refs
This commit is contained in:
parent
70d32885b1
commit
d5073e810c
10 changed files with 82 additions and 24 deletions
|
@ -351,7 +351,7 @@ namespace System.Collections
|
|||
/// Implements an enumerator for a Queue. The enumerator uses the
|
||||
/// internal version number of the list to ensure that no modifications are
|
||||
/// made to the list while an enumeration is in progress.
|
||||
public struct Enumerator : IRefEnumerator<T>
|
||||
public struct Enumerator : IRefEnumerator<T*>, IEnumerator<T>
|
||||
{
|
||||
private Queue<T> mQueue;
|
||||
private int32 mIndex; // -1 = not started, -2 = ended/disposed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue