mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-09 23:04:07 +00:00
17 lines
371 B
C++
17 lines
371 B
C++
//[ guide_custom_storage
|
|
|
|
#include <boost/histogram.hpp>
|
|
#include <boost/histogram/storage/array_storage.hpp>
|
|
|
|
namespace bh = boost::histogram;
|
|
|
|
int main() {
|
|
// create static histogram with array_storage, using int as counter type
|
|
auto h = bh::make_static_histogram_with<bh::array_storage<int>>(
|
|
bh::axis::regular<>(10, 0, 1));
|
|
|
|
// do something with h
|
|
}
|
|
|
|
//]
|