You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What it does:
It emulates the auto specifier that deduces the type of a variable by its initialization.
Why it looks like that:
The keyword auto is only available since C++11. BOOST_AUTO does exactly that and PMACC_AUTO is the PIConGPU-internal implementation.
Syntax:
first argument: variable name that you want to use
second argument: initialization
Usage of [...] brackets What do they do exactly and when are they used?
The box brackets enable access to particle attributes of particles stored in frames. Due to the fact that those attributes are initialized by <attribute>_ instead of <attribute>() the access to them had to be redefined.