snsinfu/cxx-distr

Expose some of `discrete_weights` member functions via `discrete_distribution` interface

snsinfu opened this issue · 0 comments

The access to the underlying weight values is convenient. Let us add

  • size()
  • begin()
  • end()
  • operator[]()

to discrete_distribution class. Leave data() as it feels too low level.