| Home | Libraries | People | FAQ | More

## 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:

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

## Description

### `storage_adaptor` public member functions

1.     storage_adaptor(storage_adaptor &&) = default;

2.     storage_adaptor(const storage_adaptor &) = default;

3.     storage_adaptor & operator=(storage_adaptor &&) = default;

4.     storage_adaptor & operator=(const storage_adaptor &) = default;

5.     template<class... Ts> storage_adaptor(Ts &&... ts);

6.     template<typename U> storage_adaptor & operator=(U && u);

7.     template<typename U> bool operator==(const U & u) const;

8.     template<typename Archive> void serialize(Archive & ar, unsigned);