// Example 1: Creating a new KeyValues object and deleting it. KeyValues* pKV = new KeyValues("Foo"); pKV->SetName("Bar"); pKV->SetValue("Baz", "Qux"); pKV->deleteThis(); // Deleting the KeyValues object and all of its children. // Example 2: Deleting a child KeyValues object from its parent. KeyValues* pParent = new KeyValues("Parent"); KeyValues* pChild = pParent->CreateNewKey(); pChild->SetName("Child"); pChild->SetValue("Key", "Value"); pParent->deleteThis(); // Deleting the parent, which will also delete the child.The KeyValues class is part of the Source Engine SDK, which is used to create games and mods for Valve's Source game engine.