//[ guide_custom_storage #include #include #include namespace bh = boost::histogram; int main() { // create static histogram with vector as counter storage auto h1 = bh::make_histogram_with(std::vector(), bh::axis::regular<>(10, 0, 1)); // create static histogram with array as counter storage (no allocation!) auto h2 = bh::make_histogram_with(std::array(), bh::axis::regular<>(10, 0, 1)); // do something with h1 and h2 } //]