I am using several histogram objects (from boos::histogram). I would like to pass these histograms to a function, to handle my program output outside my main.cpp.
1 2 3 4
// init histogram and axis
auto ax1 = boost::histogram::axis::regular<>(n_h_bins,xvalue_l, xvalue_r, "x");
auto ax2 = boost::histogram::axis::regular<>(n_v_bins,yvalue_l, yvalue_u, "y");
auto h = boost::histogram::make_histogram(ax1, ax2);
I wish to define a function that I can call as func(arguments).
so I define something like
it does work fine.
As a simple curiosity, how do I make sure that T implements the required methods?
I know the compiler will check it for me t compile time, but let's say I wish to include this in a library...