| 290 | |
| 291 | template <typename OutContainer, typename InContainer, typename Function> |
| 292 | void transformInto(OutContainer& outContainer, InContainer&& inContainer, Function&& function) { |
| 293 | for (auto&& elem : inContainer) { |
| 294 | if (std::is_rvalue_reference<InContainer&&>::value) |
| 295 | outContainer.insert(outContainer.end(), function(std::move(elem))); |
| 296 | else |
| 297 | outContainer.insert(outContainer.end(), function(elem)); |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | template <typename OutContainer, typename InContainer, typename Function> |
| 302 | OutContainer transform(InContainer&& container, Function&& function) { |
no test coverage detected