1 // Copyright 2018 Hans Dembinski 2 // 3 // Distributed under the Boost Software License, Version 1.0. 4 // (See accompanying file LICENSE_1_0.txt 5 // or copy at http://www.boost.org/LICENSE_1_0.txt) 6 7 #include <boost/histogram/axis.hpp> 8 #include <iostream> 9 10 #define SHOW_SIZE(x) std::cout << #x << " " << sizeof(x) << std::endl 11 main()12int main() { 13 using namespace boost::histogram; 14 15 using regular = axis::regular<>; 16 using regular_float = axis::regular<float>; 17 using regular_pow = axis::regular<double, axis::transform::pow>; 18 using regular_no_metadata = axis::regular<double, axis::transform::id, axis::null_type>; 19 using circular = axis::circular<>; 20 using variable = axis::variable<>; 21 using integer = axis::integer<>; 22 using category = axis::category<>; 23 using variant = axis::variant<regular, circular, variable, integer, category>; 24 25 SHOW_SIZE(regular); 26 SHOW_SIZE(regular_float); 27 SHOW_SIZE(regular_pow); 28 SHOW_SIZE(regular_no_metadata); 29 SHOW_SIZE(circular); 30 SHOW_SIZE(variable); 31 SHOW_SIZE(integer); 32 SHOW_SIZE(category); 33 SHOW_SIZE(variant); 34 } 35