Yes it's a plain copy. It's some code that was on its way to be in boost at one point but never got in. It's some very handy/fast tools for doing combinations. It is necessary for doing correct matching of  EGamma-clusters to PF-clusters.