Skip to content

Instantly share code, notes, and snippets.

@GGAlanSmithee
Last active December 15, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GGAlanSmithee/b49f110768cfa2dc435e to your computer and use it in GitHub Desktop.
Save GGAlanSmithee/b49f110768cfa2dc435e to your computer and use it in GitHub Desktop.
awesome C++
  • Locality matters

use arrays or vectors

  • Whole-Part Relationships and Composite Objects
    • Connected (all parts of the whole are reachable from the whole)
    • Noncircular (something can not be a part of itself (directly or indirectly)
    • Logically disjoint (an object can be shared between two other objects but if one of those objects are changed the other is not)
    • Owning (if an object is copied/deleted all its parts are copied/deleted too)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment