diff --git a/cppguide.html b/cppguide.html index 07e49e9..a7f3224 100644 --- a/cppguide.html +++ b/cppguide.html @@ -1706,7 +1706,7 @@ following order:
typedef, using,
- enum, nested structs and classes)enum, nested structs and classes, and friend types)
+The standard library header <cstdint> defines types
+like int16_t, uint32_t,
+int64_t, etc. You should always use
+those in preference to short, unsigned
+long long and the like, when you need a guarantee
+on the size of an integer. Of the C integer types, only
+int should be used. When appropriate, you
+are welcome to use standard types like
+size_t and ptrdiff_t.
We use int very often, for integers we
know are not going to be too big, e.g., loop counters.
Use plain old int for such things. You
@@ -4459,23 +4470,20 @@ declaration:
Here is an example:
@@ -4946,7 +4954,8 @@ void Circle::Rotate(double) {}Attributes, and macros that expand to attributes, appear at the very beginning of the function declaration or definition, before the return type:
-ABSL_MUST_USE_RESULT bool IsOk(); +ABSL_ATTRIBUTE_NOINLINE void ExpensiveFunction(); + [[nodiscard]] bool IsOk();Lambda Expressions