diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-12-11 20:35:39 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-12-12 14:44:15 +0000 |
commit | 6b48beeeb0aedbb552cd36a6a65f12a5bab635b5 (patch) | |
tree | 1520f8fc1ea30aa6092291e79d158418aa584c3c /src/plugins/cpptools/cpprefactoringengine.cpp | |
parent | b054e1b1f5b43c71a2557cc979e704cc6bdaeea7 (diff) | |
download | qt-creator-6b48beeeb0aedbb552cd36a6a65f12a5bab635b5.tar.gz |
Support specifying complete result type in Utils::transform
Can come in handy when the function or member does not directly return
the right value type for the result list, but is implicitly convertable
to it. For example from pointer to class to pointer to superclass, or
from int to double.
const auto result
= Utils::transform<QVector<double>>(v, &ValueType::intMember)
Change-Id: I0e1914d70bb2580b91098dd37e85a31ca14b0ae6
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpprefactoringengine.cpp')
0 files changed, 0 insertions, 0 deletions