Skip to content

Commit

Permalink
Add generic
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Feb 18, 2023
1 parent 35d6f5f commit 339f1d1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using Platform.Data.Doublets.Sequences.Unicode;

Expand All @@ -24,6 +26,9 @@ public static class UInt64LinksExtensions
/// <para></para>
/// </param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void UseUnicode(this ILinks<ulong> links) => UnicodeMap.InitNew(links);
public static void UseUnicode<TLinkAddress>(this ILinks<TLinkAddress> links) where TLinkAddress : struct, IUnsignedNumber<TLinkAddress>, IComparisonOperators<TLinkAddress, TLinkAddress, bool>
{
UnicodeMap<TLinkAddress>.InitNew(links);
}
}
}

0 comments on commit 339f1d1

Please sign in to comment.