PrevUpHomeNext

Struct template batch_deque_policy

boost::double_ended::batch_deque_policy

Synopsis

// In header: <boost/double_ended/batch_deque.hpp>

template<std::size_t SegmentSize> 
struct batch_deque_policy {

  // public data members
  static constexpr std::size_t segment_size;
};

Description

Controls the batch_deques implementation defined behavior

batch_deque_policy public public data members

  1. static constexpr std::size_t segment_size;

    The size of the allocated chunks in elements

    Remark: Using a power of two increases performance because of the cheaper division and modulo operations.


PrevUpHomeNext