Weight accessor that always returns 1. More...
#include <weight_accessor.hpp>
Public Member Functions | |
WeightType | operator() (ElementType const &e) const |
Functor implementation. More... | |
Weight accessor that always returns 1.
This accessor can be passed to sample from a population of equal-weight elements. The total weight of the population should naturally be set to the number of elements in the population. This accessor is of type functor, see Accessors for more details.
Definition at line 23 of file weight_accessor.hpp.
|
inline |