SHARE
TWEET

Untitled

a guest Apr 21st, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. circular_buffer(capacity_type buffer_capacity, size_type n, const_reference item, const allocator_type& alloc = allocator_type());
  2.    
  3. template<class T> class Custom
  4. {
  5.   public:
  6.  
  7.     Custom() :
  8.       time(0.0)
  9.     {}
  10.  
  11.     double time;
  12.     T data_;
  13. };
  14.    
  15. boost::circular_buffer<Custom<T>> buffer(10);
  16.    
  17. int num_elements = 10;
  18. Custom<T> custom;
  19. std::vector<Custom<T>> buffer(10, custom);
RAW Paste Data
Top