#include #include #include #include #include #include #include "bitflags.h" #include using namespace std; template struct node_t { //atomic data; T data; atomic* > next; atomic ref_count; long long timestamp; node_t (const T& data_, node_t* next_) { //data.store(data_); timestamp = -1; data = data_; next.store(next_); ref_count.store(1); } };