Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template index

boost::histogram::axis::traits::index — Returns axis index for value.

Synopsis

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


template<class... Ts, typename U> 
  auto index(const variant< Ts... > & axis, const U & value);

Description

Throws std::invalid_argument if the value argument is not implicitly convertible.

Parameters:

axis

any axis instance

value

argument to be passed to index method


PrevUpHomeNext