enum

C++ Core Guidelines: Rules for Enumerations

The section to enumerations has eight rules. Since C++11, we have scoped enumerations which overcome a lot of the drawbacks of classical enumerations. 

Read more
Tags: enum
Add CommentViews: 23244

Generalized Plain Old Data

Plain Old Data (POD) obeys the C standard layout. Therefore, you directly can apply the fast C functions memcopy, memmove, memset, or memcmp.

Read more
Tags: enum
Comments 1Views: 7988

Strongly-Typed Enums

Enumerations are a convenient way to define integer constants with names. This integer constants are called enumerators. Sadly, classical enums have a few drawbacks.

Read more
Tags: enum
Comments 10Views: 15452

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 2827

All 1580563

Currently are 134 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments