mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-09 23:04:07 +00:00
20 lines
410 B
C++
20 lines
410 B
C++
// Copyright 2022 Hans Dembinski
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE_1_0.txt
|
|
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#include <boost/histogram.hpp>
|
|
#include "throw_exception.hpp"
|
|
|
|
int main() {
|
|
using namespace boost::histogram;
|
|
|
|
auto h = make_histogram(axis::integer<>(0, 5));
|
|
|
|
h(0);
|
|
|
|
auto values = {1, 2};
|
|
h.fill(values);
|
|
}
|