|
SpECTRE
v2026.04.01
|
A DataBox mutator. More...
#include <Mutator.hpp>
Classes | |
| struct | test |
A DataBox mutator.
A class conforming to this protocol can be used as the template argument for a call to db::mutate_apply(const gsl::not_null<DataBox<BoxTags>*> box, Args&&... args). The conforming class must provide the following:
apply: A static function whose return value is returned by db::mutate_apply, and that takes as arguments:
Note: use the explicit type whenever possible, not the type aliases. db::const_item_type will usually be Tag::type unless that is a std::unique_ptr<T>, in which case it will be T
Here is an example for a class conforming to this protocol: