``atomic_assign`` ================= .. warning:: Deprecated since Kokkos 4.5, use `atomic_store `_ instead. .. role:: cpp(code) :language: cpp Defined in header ```` which is included from ```` Usage ----- .. code-block:: cpp atomic_assign(&obj, desired); // ^^^^^^ // deprecated since Kokkos 4.5, // use atomic_store(&obj, desired) instead Atomically replaces the current value of ``obj`` with ``desired``. Description ----------- .. cpp:function:: template void atomic_assign(T* ptr, std::type_identity_t val); Atomically writes ``val`` into ``*ptr``. ``{ *ptr = val; }`` :param ptr: address of the object whose value is to be replaced :param val: the value to store in the referenced object :returns: (nothing)