Tag: stl

M out of N

c++ boost circular buffer and stl map and set example

In an effort to become more familiar with boost data structures (as opposed to homebrewed ones), I took a crack at M out of N validator. It checks the last N updates and determines if M passed a certain criteria. Not all members are updated at each interval, and they are identified by an ID pair of two longs.

(more…)