[C++]: initial port of ManyToOneRingBuffer