It depends on what your elements are. If the element is a struct, then use a new struct array; if it is a char, then use a new char[n]. For example, for a socket buffer, usually use a CircleBuffer<uint8> ; A message queue generally uses CircleBuffer<Message>.
It depends on what your elements are. If the element is a struct, then use a new struct array; if it is a char, then use a new char[n].
For example, for a socket buffer, usually use a
CircleBuffer<uint8>
; A message queue generally usesCircleBuffer<Message>
.