fork download
  1. #include <boost/circular_buffer.hpp>
  2. #include <cassert>
  3.  
  4. boost::circular_buffer<int> cb(3);
  5.  
  6. int main()
  7. {
  8. cb.push_back(0);
  9. cb.push_back(1);
  10. cb.push_back(2);
  11. cb.push_back(3);
  12.  
  13. assert(cb[0] == 1);
  14. assert(cb.front() == 1);
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:37: fatal error: boost/circular_buffer.hpp: No such file or directory
compilation terminated.
stdout
Standard output is empty