KeyValues* kv = new KeyValues("example"); int* ptr = new int(10); kv->SetPtr("myInt", ptr);In this example, a new `KeyValues` object is created with the name "example". An integer pointer `ptr` is also created and initialized to the value 10. The `SetPtr` method is then called to set the "myInt" key with the value of `ptr`. Package library: This code example uses the KeyValues library which is a part of the Valve Source SDK.