nf_hist::tracked::trim_history

Trims history so it starts at new_first_action; if new_first_action is elided the trim starts at the next unelided action

Synopsis

Declared in <nf/hist.h>

std::size_t
trim_history(std::size_t new_first_action);

Return Value

new_first_action if new_first_action was not elided, the first unelided action after that otherwise, zero if history is or becomes empty

Parameters

Name

Description

new_first_action

the action you want to come first in the history after trimming

Created with MrDocs