-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build a vector applying a transformation to each element of an input vector #648
Conversation
…to the elements of an input vector
…rning a ReturnType const &
A new Pull Request was created by @fwyzard (Andrea Bocci) for CMSSW_7_0_X. build a vector applying a transformation to each element of an input vector It involves the following packages: FWCore/Utilities @Dr15Jones, @ktf can you please review it and eventually sign? Thanks. |
+1 |
It would have been nice had a unit test been made to prove that this works as expected |
This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. |
Hi Chris, However, I do not know how to write a proper "unit test" - if you can point me to an example, I can add one for vector_transform. .A |
Try one of the .cppunit.cpp tests in FWCore/Utilities/test. E.g. soatuple_t.cppunit.cpp |
OK, I've added a unit test. |
Pull request #648 was updated. Signatures reset, please check and sign again. |
+1 |
This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. |
build a vector applying a transformation to each element of an input vector
Heppy --memcheck option (76x backport)
helper template function to build a vector by applying a transformation function to each elements of an input vector