StatusOr returns a value on success and a Status on error.
future and promise futures (a holder that will receive a value asynchronously) and promises (the counterpart of a future, where values are stored asynchronously). They satisfy the API for std::future and std::promise, and add support for callbacks and cancellation.
More information
Error Handling for more details about how the libraries report run-time errors and how you can handle them.
[[["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-14 UTC."],[[["\u003cp\u003eThis library provides common components for Google Cloud C++ Client Libraries, including credentials, options, status, futures, and promises.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release is version 2.37.0-rc, with a history of versions ranging back to 2.10.1 being made available.\u003c/p\u003e\n"],["\u003cp\u003eCredentials configure authentication, options override default settings, and status components detail error reporting for the operation.\u003c/p\u003e\n"],["\u003cp\u003eCertain namespaces, particularly those containing \u003ccode\u003einternal\u003c/code\u003e or \u003ccode\u003etesting\u003c/code\u003e, are reserved for internal use and are subject to change without notice, making their direct use not advised.\u003c/p\u003e\n"],["\u003cp\u003eUsers can find more information about error handling, client library configuration, authentication, and logging components in the provided documentation links.\u003c/p\u003e\n"]]],[],null,[]]