Skip to content

Commit 78b644c

Browse files
drona-gyawaliscotthart
authored andcommitted
feat(bigtable):replace the code placement
Signed-off-by: Dorna Raj Gyawali <dronarajgyawali@gmail.com>
1 parent d6cdb47 commit 78b644c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/cloud/bigtable/internal/google_bytes_traits.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ inline bool IsEmptyRowKey(std::string const& key) { return key.empty(); }
4141
/// Return true if the row key is empty.
4242
inline bool IsEmptyRowKey(char const* key) { return std::string{} == key; }
4343

44-
/// Clear the row key.
45-
inline void Clear(std::string& key) { key.clear(); }
46-
4744
#if GOOGLE_CLOUD_CPP_CPP_VERSION >= 201703L
4845
/// Return true if the row key is empty.
4946
inline bool IsEmptyRowKey(std::string_view key) { return key.empty(); }
5047
#endif // GOOGLE_CLOUD_CPP_CPP_VERSION >= 201703L
5148

49+
/// Clear the row key.
50+
inline void Clear(std::string& key) { key.clear(); }
51+
5252
/// Return `< 0` if `lhs < rhs`, 0 if `lhs == rhs`, and `> 0' otherwise.
5353
inline int CompareRowKey(std::string const& lhs, std::string const& rhs) {
5454
return lhs.compare(rhs);

0 commit comments

Comments
 (0)