mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-12 13:41:48 +00:00
28 lines
732 B
C++
28 lines
732 B
C++
// Copyright 2015-2016 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/axis.hpp>
|
|
#include <boost/variant.hpp>
|
|
#include <iostream>
|
|
|
|
namespace boost { namespace histogram {
|
|
using axis_variant =
|
|
typename make_variant_over<builtin_axes>::type;
|
|
}}
|
|
|
|
int main() {
|
|
|
|
#define SIZEOF(axis) \
|
|
std::cout << #axis << " " << sizeof(boost::histogram::axis) << std::endl
|
|
SIZEOF(axis::regular<>);
|
|
SIZEOF(axis::circular<>);
|
|
SIZEOF(axis::variable<>);
|
|
SIZEOF(axis::integer<>);
|
|
SIZEOF(axis::category<>);
|
|
SIZEOF(axis_variant);
|
|
|
|
}
|