Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-09-23 06:13:03


I have written something like this for signal processing application. The
bounded types are integer-like. Basically, all it does it perform a check
action when a value is assigned to it. The check function is specified as
a template policy parameter. The version I wrote has three policies. If
the assigned value is out of range, the action could
1) limit to the desired range
2) wrap the value (as if an integer of some small width)
3) throw


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk