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


Struct pow

boost::histogram::axis::transform::pow — Pow transform for equidistant bins in pow-space.


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

struct pow {
  // construct/copy/destruct
  explicit pow(double);
  pow() = default;

  // public member functions
  template<typename T> auto forward(T) const;
  template<typename T> auto inverse(T) const;
  bool operator==(const pow &) const noexcept;
  template<typename Archive> void serialize(Archive &, unsigned);

  // public data members
  double power;  // power index 


pow public construct/copy/destruct

  1. explicit pow(double p);
    Make transform with index p.
  2. pow() = default;

pow public member functions

  1. template<typename T> auto forward(T x) const;
    Returns pow(x, power) of external value x.
  2. template<typename T> auto inverse(T x) const;
    Returns pow(x, 1/power) of external value x.
  3. bool operator==(const pow & o) const noexcept;
  4. template<typename Archive> void serialize(Archive & ar, unsigned);