Notes
[EMCpp]Item-11 Prefer Deleted Functions to Private Undefined Ones
· β 3 min read
[EMCpp]Item-10 Prefer Scoped enums to Unscopded enums
· β 4 min read
Enumerators of scoped enum
s are visible only within the enum
, convert to other types only with a cast, and always support forward-declared because their default underlying type is int
.
[EMCpp]Item-9 Prefer Alias Declarations to Typedefs
· β 2 min read
Alias declaration support templatization, which avoids the “::type” suffix and “typename” prefix often required to refer typedef
s.
[EMCpp]Item-8 Prefer Nullptr to 0 and NULL
· β 3 min read
nullptr
doean’t suffer from the overloading problem or the template deduction problem that 0 and NULL
are susceptible to. It also improves code clarity.