diff --git a/LLama/Native/LLamaPos.cs b/LLama/Native/LLamaPos.cs index 52d67d505..47564d554 100644 --- a/LLama/Native/LLamaPos.cs +++ b/LLama/Native/LLamaPos.cs @@ -35,4 +35,24 @@ private LLamaPos(int value) /// /// public static implicit operator LLamaPos(int value) => new(value); + + /// + /// Increment this position + /// + /// + /// + public static LLamaPos operator ++(LLamaPos pos) + { + return new LLamaPos(pos.Value + 1); + } + + /// + /// Increment this position + /// + /// + /// + public static LLamaPos operator --(LLamaPos pos) + { + return new LLamaPos(pos.Value - 1); + } } \ No newline at end of file