fork download
  1. #include <iostream>
  2. #include <ostream>
  3. #include <vector>
  4. #include <boost/assign/list_of.hpp>
  5. using namespace std;
  6. using namespace boost::assign;
  7.  
  8. int main()
  9. {
  10. vector<int> v;
  11. v.push_back(0);
  12. v.push_back(1);
  13. cout << (v == list_of(0)(1)) << endl;
  14. cout << (v == list_of(1)) << endl;
  15. cout << (v == list_of(1)(2)) << endl;
  16. }
Success #stdin #stdout 0.02s 2864KB
stdin
Standard input is empty
stdout
1
0
0