We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bada09 commit c010d41Copy full SHA for c010d41
google/cloud/storage/async/write_payload.h
@@ -58,6 +58,9 @@ class WritePayload {
58
explicit WritePayload(std::vector<T> p)
59
: impl_(storage_internal::MakeCord(std::move(p))) {}
60
61
+ /// Creates a payload from @p impl.
62
+ explicit WritePayload(absl::Cord impl) : impl_(std::move(impl)) {}
63
+
64
/// Returns true if the payload has no data.
65
bool empty() const { return impl_.empty(); }
66
@@ -76,7 +79,6 @@ class WritePayload {
76
79
77
80
private:
78
81
friend struct storage_internal::WritePayloadImpl;
- explicit WritePayload(absl::Cord impl) : impl_(std::move(impl)) {}
82
83
absl::Cord impl_;
84
};
0 commit comments