tpie
tpie copied to clipboard
Issue #187 : Add `peek_back` to `tpie::file_stream`
Closes #187 by adding a peek_back function to tpie::file_stream. Furthermore also improves the order of the functions, their documentation (quite a few had missing documentation), whitespace, and adds a read_back function given an iterator.
This has been extensively tested on my research project (https://github.com/SSoelvsten/adiar/pull/374).
Also, now looking at said code: what is the meaning behind the use of the word unlikely in peak_unlikely, read_back_unlikely and write_unlikely? Would update_block__forward_read, update_block__backwards_read, and update_block__forward_write not make more sense?