結果 : c++ ring buffer implementation