I have:
int* p = 0xf
How can I wrap p as std::atomic<int>? I would like someting like:
p
std::atomic<int>
std::atomic<int> wp = wrap(p); wp.store(100);
And wp.store(100) stored 100 to 0xf
wp.store(100)
100
0xf
Aucun commentaire:
Enregistrer un commentaire