Development reference: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! c++11 | ! c++11 containers | ||
|- | |- | ||
| sorted_vector || use when doing lots of unsorted insertions and maintaining constant sort would be expensive | | sorted_vector || use when doing lots of unsorted insertions and maintaining constant sort would be expensive | ||
Line 6: | Line 6: | ||
| map || sorted binary search tree; always sorted by key; you can walk through in sorted order | | map || sorted binary search tree; always sorted by key; you can walk through in sorted order | ||
|- | |- | ||
| multimap || same as map but allows dupe keys; need for this should be VERY RARE i would think | |||
|- | |||
| unordered_map || hashmap; always sorted by key; additional bucket required for hash collisions; no defined order when walking through | |||
|- | |||
| unordered_multimap || same as map but allows dupe keys; dupes are obviously in the same bucket, and you can walk just the dupes if needed | |||
|- | |||
| set<br>multiset<br>unordered_set<br>unordered_multiset || | |||
sets are just like maps, except the key is embedded in the object, great idea! | sets are just like maps, except the key is embedded in the object, great idea! | ||
but... they are ruined by the constraint that contained items MUST BE CONST wtf | but... they are ruined by the constraint that contained items MUST BE CONST wtf |
Revision as of 20:56, 7 June 2013
Expandc++11 containers |
---|
Expandc++11 for loop using lambda |
---|
Expandc++ stl in-memory storage of "major" objects |
---|
Expandc++ stl reverse iterator skeleton |
---|
c++ stl reading a binary file |
---|
Expandc/c++ gdb debugging |
---|
Expandphp debugging |
---|
Expandjava eclipse project layout format |
---|
ExpandSQL Server 2008+ proper upsert using MERGE |
---|
Expandgit recreate repo |
---|
Expandbash chmod dirs |
---|
Web Services |
---|
Firefox Addon development |
---|
Expandmediawiki collapsible skeleton |
---|
Expandmediawiki collapsible example |
---|