Skip to content

Commit 386eede

Browse files
authored
used std::ranges::transform (#14197)
1 parent edacfec commit 386eede

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

applications/GeoMechanicsApplication/custom_utilities/variables_utilities.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ class KRATOS_API(GEO_MECHANICS_APPLICATION) VariablesUtilities
2828
template <typename NodeContainerType, typename DataType, typename OutputIt>
2929
static OutputIt GetNodalValues(const NodeContainerType& rNodes, const Variable<DataType>& rNodalVariable, OutputIt FirstOut)
3030
{
31-
return std::transform(std::begin(rNodes), std::end(rNodes), FirstOut,
32-
[&rNodalVariable](const auto& rNode) {
31+
return std::ranges::transform(rNodes, FirstOut, [&rNodalVariable](const auto& rNode) {
3332
return rNode.FastGetSolutionStepValue(rNodalVariable);
34-
});
33+
}).out;
3534
}
3635

3736
template <unsigned int TNumNodes, typename NodeContainerType>

0 commit comments

Comments
 (0)