Skip to content

Commit abc95d5

Browse files
authored
doc: update styleguide.md to prefer certain std types (#16335)
1 parent 6d1fae9 commit abc95d5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.gemini/styleguide.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ https://google.github.io/styleguide/cppguide.html with the following variances:
2121

2222
- Use C++17 as its minimum C++ standard version.
2323
- Use `std::mutex` instead of `absl::mutex`.
24+
- Use `std::string_view` instead of `absl::string_view`.
25+
- Use `std::optional` instead of `absl::optional`.
26+
- Use `std::variant` instead of `absl::variant`.
2427
- Use `google::cloud::future` and `google::cloud::promise` instead of
2528
`std::future` and `std::promise`.
2629
- Use `google::cloud::Status` and `google::cloud::StatusOr` instead of

0 commit comments

Comments
 (0)