Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template has_pick_constructor

boost::histogram::axis::traits::has_pick_constructor — Meta-function to detect whether an axis has the pick constructor.

Synopsis

// In header: <boost/histogram/axis/traits.hpp>

template<typename Axis> 
struct has_pick_constructor {
};

Description

Doxygen does not render this well. This is a meta-function (template alias), it accepts an axis type and represents compile-time boolean which is true or false, depending on whether the axis has the special constructor required by the pick command in boost::histogram::algorithm::reduce(). See Axis concept for details.

This constructor must only be implemented for axes which are not ordered, like the category axis, since picking an arbitrary subset of bins from an ordered axis would create gaps in the axis range.

Template Parameters

  1. typename Axis

    axis type.


PrevUpHomeNext