The KeySet class is a regular type that represents a collection of Keys.
Users can construct a KeySet instance, then add Keys and ranges of Keys to the set. The caller is responsible for ensuring that all keys in a given KeySet instance contain the same number and types of values.
Users may also optionally construct an instance that represents all keys with KeySet::All().
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eKeySet\u003c/code\u003e class in the Google Cloud Spanner C++ library, focusing on its role in managing collections of keys.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeySet\u003c/code\u003e class allows users to add individual keys or ranges of keys to a set, ensuring all keys share the same number and types of values.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides a method \u003ccode\u003eKeySet::All()\u003c/code\u003e to represent a set containing all possible keys.\u003c/p\u003e\n"],["\u003cp\u003eThere are examples showing how to construct a \u003ccode\u003eKeySet\u003c/code\u003e instance and add keys or ranges, and to delete all of them using \u003ccode\u003eKeySet::All()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists the different versions of the \u003ccode\u003eKeySet\u003c/code\u003e class and details the class' constructors, operators and functions such as \u003ccode\u003eAddKey\u003c/code\u003e and \u003ccode\u003eAddRange\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]