C++ boilerplate

Get a character from an istream

int c = someStream.get();

Tell an atomic to read and write from RAM

std::atomic<int> apa(std::memory_order_relaxed);
// apa will read/write from RAM only