implementation of basic atomic_buffer::element functions