Skip to content

Commit 48a782d

Browse files
committed
add AI review suggestion of support for rvalue in emplace_tag
1 parent d8e4add commit 48a782d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

google/cloud/bigtable/instance_config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ class InstanceConfig {
7777
return *this;
7878
}
7979

80+
InstanceConfig& emplace_tag(std::string&& key, std::string value) {
81+
(*proto_.mutable_instance()->mutable_tags())[std::move(key)] =
82+
std::move(value);
83+
return *this;
84+
}
85+
8086
// NOLINT: accessors can (and should) be snake_case.
8187
google::bigtable::admin::v2::CreateInstanceRequest const& as_proto() const& {
8288
return proto_;

0 commit comments

Comments
 (0)