Skip to content

Instantly share code, notes, and snippets.

@zhpmatrix
Created May 15, 2017 07:24
Show Gist options
  • Save zhpmatrix/f6879b053a0bdafb942a3deb801bfb2d to your computer and use it in GitHub Desktop.
Save zhpmatrix/f6879b053a0bdafb942a3deb801bfb2d to your computer and use it in GitHub Desktop.
boost 1.55 tuple
#include <iostream>
#include <boost/tuple/tuple.hpp>
#include <boost/tuple/tuple_comparison.hpp>
#include <boost/tuple/tuple_io.hpp>
using namespace boost;
int main(){
tuple<int, char, float> t(2, 'a', 0.9);
  std::cout << t << std::endl;
  return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment