I am trying to implement a lock free data structure for a project I am working on . It is a simulation with many parts in it (1 million > ) and I am trying to make the parts take up as small a size as possible ?
By cost if you could provide more information about memory and performance cost it would be great ?
What are the downsides to using std::atomic ?