MCPcopy Create free account
hub / github.com/boostorg/histogram / make_dynamic_histogram_with

Function make_dynamic_histogram_with

include/boost/histogram/histogram.hpp:292–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290/// dynamic type factory with custom storage type
291template <typename Any=axis::any_std, typename Storage, typename T, typename... Ts>
292histogram<std::vector<Any, detail::srebind<Storage, Any>>, detail::rm_cv_ref<Storage>>
293make_dynamic_histogram_with(Storage&& s, T&& axis0, Ts&&... axis) {
294 using H = histogram<std::vector<Any, detail::srebind<Storage, Any>>, detail::rm_cv_ref<Storage>>;
295 auto axes = typename H::axes_type(
296 {Any(std::forward<T>(axis0)), Any(std::forward<Ts>(axis))...}, s.get_allocator());
297 return H(std::move(axes), std::forward<Storage>(s));
298}
299
300/// dynamic type factory with standard storage type
301template <typename Any=axis::any_std, typename T, typename... Ts>

Callers 2

mainFunction · 0.85
make_dynamic_histogramFunction · 0.85

Calls 1

get_allocatorMethod · 0.45

Tested by 1

mainFunction · 0.68