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 to view this page for the latest version.
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;
};

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;

PrevUpHomeNext