mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Add missing %= operator to ArrayPortalValueReference
This commit is contained in:
parent
9e02cd33af
commit
af4aef9913
@ -200,6 +200,25 @@ struct ArrayPortalValueReference
|
||||
return lhs;
|
||||
}
|
||||
|
||||
VTKM_SUPPRESS_EXEC_WARNINGS
|
||||
template <typename T>
|
||||
VTKM_EXEC_CONT ValueType operator%=(const T& rhs) const
|
||||
{
|
||||
ValueType lhs = this->Get();
|
||||
lhs %= rhs;
|
||||
this->Set(lhs);
|
||||
return lhs;
|
||||
}
|
||||
VTKM_SUPPRESS_EXEC_WARNINGS
|
||||
template <typename T>
|
||||
VTKM_EXEC_CONT ValueType operator%=(const ArrayPortalValueReference<T>& rhs) const
|
||||
{
|
||||
ValueType lhs = this->Get();
|
||||
lhs %= rhs.Get();
|
||||
this->Set(lhs);
|
||||
return lhs;
|
||||
}
|
||||
|
||||
VTKM_SUPPRESS_EXEC_WARNINGS
|
||||
template <typename T>
|
||||
VTKM_EXEC_CONT ValueType operator&=(const T& rhs) const
|
||||
|
Loading…
Reference in New Issue
Block a user