25 #ifndef ALEXANDRIA_HISTOGRAM_BINNING_EDGEVECTOR_H 26 #define ALEXANDRIA_HISTOGRAM_BINNING_EDGEVECTOR_H 46 template<
typename VarType>
53 template<
typename... Args>
63 auto next_edge = std::find_if(
m_edges.begin(),
m_edges.end(), [value](
const VarType edge) {
return edge > value; });
66 return next_edge -
m_edges.begin() - 1;
69 std::pair<VarType, VarType>
getBinEdges(
size_t i)
const final {
86 #endif // ALEXANDRIA_HISTOGRAM_BINNING_EDGEVECTOR_H virtual ~EdgeVector()=default
ssize_t getBinIndex(VarType value) const final
EdgeVector(EdgeVector &&)=default
std::vector< VarType > m_edges
VarType getEdge(size_t i) const final
std::pair< VarType, VarType > getBinEdges(size_t i) const final
EdgeVector(Args &&... args)