nf_hist::index_size

Optional annotation used to specify the index size type used in serialized history, specifying an index size smaller than std::size_t reduces history size, appropriate when there's a known limit to a given containers size e.g. NOTE(my_vec, nf::index_size<uint16_t>) std::vector<int> my_vec;

Synopsis

Declared in <nf/hist.h>

template<typename Size_type>
inline constexpr index_size_type<Size_type> index_size;

Template Parameters

Name

Description

Size_type

the index size you wish to use, should be capable of holding the index: container size limit‐1

Created with MrDocs