We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06904b9 commit 0a6e1ecCopy full SHA for 0a6e1ec
Documentation/Stack/TopFuture.md
@@ -19,3 +19,21 @@ Exception
19
```
20
21
If Future element not available
22
+
23
+```C#
24
25
+unsafe
26
+{
27
+ using (var memory = new StackMemoryCollections.Struct.StackMemory(sizeof(int) * 10))
28
+ {
29
+ using var stack = new StackMemoryCollections.Struct.StackOfInt32(10, &memory);
30
+ for (int i = 0; i < 10; i++)
31
32
+ int* futureTop = stack.TopFuture();
33
+ *futureTop = i;
34
+ stack.PushFuture();
35
+ }
36
37
+}
38
39
+```
0 commit comments