atomicOp

Performs the binary operation 'op' on val using 'mod' as the modifier.

pure nothrow @nogc @safe
TailShared!T
atomicOp
(
string op
T
V1
)
(
ref shared T val
,
V1 mod
)
if (
__traits(compiles, mixin ("*cast(T*)&val" ~ op ~ "mod"))
)

Parameters

val T

The target variable.

mod V1

The modifier to apply.

Return Value

Type: TailShared!T

The result of the operation.

Meta