Update transform.hpp
Merge pull request #6 from insideoutclub/develop

Make BinaryOperator version of transform() stop when end of either range is reached (refs #9812)