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 a snapshot of the develop branch, built from commit 8ebe54f055.
PrevUpHomeNext

Class template storage_adaptor

boost::histogram::storage_adaptor — Turns any vector-like, array-like, and map-like container into a storage type.

Synopsis

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

template<typename T> 
class storage_adaptor {
public:
  // construct/copy/destruct
  storage_adaptor(storage_adaptor &&) = default;
  storage_adaptor(const storage_adaptor &) = default;
  template<class... Ts> storage_adaptor(Ts &&...);
  storage_adaptor & operator=(storage_adaptor &&) = default;
  storage_adaptor & operator=(const storage_adaptor &) = default;
  template<typename U> storage_adaptor & operator=(U &&);

  // public member functions
  template<typename U> bool operator==(const U &) const;
  template<typename Archive> void serialize(Archive &, unsigned);
};

Description

storage_adaptor public construct/copy/destruct

  1. storage_adaptor(storage_adaptor &&) = default;
  2. storage_adaptor(const storage_adaptor &) = default;
  3. template<class... Ts> storage_adaptor(Ts &&... ts);
  4. storage_adaptor & operator=(storage_adaptor &&) = default;
  5. storage_adaptor & operator=(const storage_adaptor &) = default;
  6. template<typename U> storage_adaptor & operator=(U && u);

storage_adaptor public member functions

  1. template<typename U> bool operator==(const U & u) const;
  2. template<typename Archive> void serialize(Archive & ar, unsigned);

PrevUpHomeNext