C++: Difference between revisions
| Line 767: | Line 767: | ||
===absl=== | ===absl=== | ||
https://github.com/abseil/abseil-cpp is a library used by Google which supplements the standard library. | https://github.com/abseil/abseil-cpp is a library used by Google which supplements the standard library. | ||
Useful things: | |||
# <code>absl::Time</code> and <code>absl::Duration</code>. | |||
# [https://abseil.io/docs/cpp/guides/strings#abslstrcat absl strings] | |||
# [https://abseil.io/docs/cpp/guides/logging absl logging] | |||
Many parts of absl now have <code>std::</code> equivalents such as <code>std::unique_ptr</code>, <code>std::string_view</code>, <code>std::span</code>. Unless contributing to Google codebases, you should probably prefer those. | |||
At Google, they prefer absl hash containers over unordered_set and unordered_map: | |||
# <code>absl::flat_hash_map</code> | |||
==References== | ==References== | ||
[[Category:Programming languages]] | [[Category:Programming languages]] | ||