atomicOp
fn
TailShared!T atomicOp(string op, T, V1)(ref shared T val, V1 mod) if (__traits(compiles, mixin("*cast(T*)&val" ~ op ~ "mod"))) pure nothrow @nogc @safePerforms the binary operation 'op' on val using 'mod' as the modifier.
Parameters
val | The target variable. |
mod | The modifier to apply. |
Returns
The result of the operation.