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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template sample_type

boost::histogram::sample_type — Sample holder and type envelope.


// In header: <boost/histogram/sample.hpp>

template<typename T> 
struct sample_type {

  // public data members
  T value;


You should not construct these directly, use the sample() helper function.