I was going to but decided it would be a bit fiddly (particularly how to make it properly templated) and I didn't really have time.  I will look at it again when I have a bit more time for some ramp-up on advanced C++ templating.