Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions google/cloud/bigtable/internal/google_bytes_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ inline bool IsEmptyRowKey(char const* key) { return std::string{} == key; }
inline bool IsEmptyRowKey(std::string_view key) { return key.empty(); }
#endif // GOOGLE_CLOUD_CPP_CPP_VERSION >= 201703L

/// Clear the row key.
inline void Clear(std::string& key) { key.clear(); }

/// Return `< 0` if `lhs < rhs`, 0 if `lhs == rhs`, and `> 0' otherwise.
inline int CompareRowKey(std::string const& lhs, std::string const& rhs) {
return lhs.compare(rhs);
Expand Down
Loading