MCPcopy Create free account
hub / github.com/apple/foundationdb / tryGet

Method tryGet

fdbclient/include/fdbclient/JSONDoc.h:274–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 // For convenience, wraps get() in a try/catch and returns false UNLESS the path existed and was a compatible type.
273 template <typename T>
274 bool tryGet(const std::string path, T& out, bool split = true) {
275 try {
276 return get(path, out, split);
277 } catch (...) {
278 }
279 return false;
280 }
281
282 const json_spirit::mValue& at(const std::string path, bool split = true) {
283 if (has(path, split))

Callers 9

getBackupDRTagsFunction · 0.45
mValue>Method · 0.45
cleanOpsMethod · 0.45
getDRAgentsIdsFunction · 0.45
getDRMutationStreamIdFunction · 0.45
parseFunction · 0.45
readKeyspaceSnapshotMethod · 0.45

Calls 1

getFunction · 0.70

Tested by

no test coverage detected