Rename because it is ordered
This commit is contained in:
parent
b5b363ae9f
commit
e3cec3423b
28 changed files with 104 additions and 104 deletions
16
PersistentOrderedMap/KeyStrategies/IntStrategy.cs
Normal file
16
PersistentOrderedMap/KeyStrategies/IntStrategy.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace PersistentOrderedMap;
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
public struct IntStrategy : IKeyStrategy<int>
|
||||
{
|
||||
public bool UsesPrefixes => false;
|
||||
public bool IsLossless => true;
|
||||
public bool UseBinarySearch => false;
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public int Compare(int x, int y) => x.CompareTo(y);
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public long GetPrefix(int key) => 0; // Unused
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue