cas.cas

Compare and exchange for mixed-sharedness types

  1. bool cas(T* here, V1 ifThis, V2 writeThis)
  2. bool cas(shared(T)* here, V1 ifThis, V2 writeThis)
  3. bool cas(shared(T)* here, shared(V1) ifThis, shared(V2) writeThis)
  4. bool cas(T* here, T* ifThis, V writeThis)
  5. bool cas(shared(T)* here, V1* ifThis, V2 writeThis)
    template cas(MemoryOrder succ = MemoryOrder.seq, MemoryOrder fail = MemoryOrder.seq)
    pure nothrow @nogc @trusted
    bool
    cas
    (
    T
    V1
    V2
    )
    (
    shared(T)* here
    ,
    V1* ifThis
    ,)
    if (
    !is(T == class) &&
    (
    is(T : V1) ||
    is(shared T : V1)
    )
    )
  6. bool cas(shared(T)* here, shared(T)* ifThis, shared(V) writeThis)

Meta