Monday, November 5, 2012

Data structures in Boost

I like boost for the rich collection of data structures, which are very handful now and then.


  • Tuples, for tuples in mathematical sense
  • Any, when you have a collection of objects with different types 
  • Variant, when you have a collection of objects with different types, a modern version of union
  • Dynamic bitset, when you need to create a bitset whose dimension is unknown at compile time

No comments:

Post a Comment