We Recommend

C++ The Core Language C++ The Core Language
C++: The Core Language is for C programmers transitioning to C++. It's designed to get readers up to speed quickly by covering an essential subset of the language. The subset consists of features without which it's just not C++, and a handful of others that make it a reasonably useful language.


Posted By

chrysanth on 03/19/07


Tagged

array tuple boost


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

yuconner
copyleft


boost tuple array


Published in: C++ 


  1. boost::array<boost::tuple<string, int>, 2> boo = {
  2. ("position x", 0),
  3. ("position y", 0)
  4. };
  5.  
  6. boost::array<boost::tuple<string, int>, 2> foo = {
  7. boost::make_tuple("position x", 0),
  8. boost::make_tuple("position y", 0)
  9. };

Report this snippet 

You need to login to post a comment.