MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / SplitPoint

Class SplitPoint

getting-started/index_gcs_prefix.cc:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 ThrowIfNotOkay("listing bucket " + bucket, entry.status());
116 if (std::chrono::steady_clock::now() >= deadline) {
117 struct SplitPoint {
118 std::string operator()(std::string const& s) { return s; }
119 std::string operator()(gcs::ObjectMetadata const& o) {
120 return o.name();
121 }
122 };
123 std::string start = absl::visit(SplitPoint{}, *entry);
124 auto builder = pubsub::MessageBuilder{}
125 .InsertAttribute("bucket", bucket)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected