[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 enums 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 typedefs.
[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.
 
       
       
       
      