Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct buffer_type

boost::histogram::unlimited_storage::buffer_type

Synopsis

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



struct buffer_type {
  // construct/copy/destruct
  buffer_type(allocator_type = {});
  buffer_type(buffer_type &&) noexcept;
  buffer_type(const buffer_type &);
  buffer_type & operator=(buffer_type &&) noexcept;
  buffer_type & operator=(const buffer_type &);
  ~buffer_type();

  // public member functions
  template<typename F, class... Ts> decltype(auto) apply(F &&, Ts &&...) const;
  void destroy() noexcept;
  template<typename T> void make(std::size_t);
  template<typename T, typename U> void make(std::size_t, U);

  // public data members
  allocator_type alloc;
  std::size_t size;
  char type;
  void * ptr;
};

Description

buffer_type public construct/copy/destruct

  1. buffer_type(allocator_type a = {});
  2. buffer_type(buffer_type && o) noexcept;
  3. buffer_type(const buffer_type & o);
  4. buffer_type & operator=(buffer_type && o) noexcept;
  5. buffer_type & operator=(const buffer_type & o);
  6. ~buffer_type();

buffer_type public member functions

  1. template<typename F, class... Ts> 
      decltype(auto) apply(F && f, Ts &&... ts) const;
  2. void destroy() noexcept;
  3. template<typename T> void make(std::size_t n);
  4. template<typename T, typename U> void make(std::size_t n, U iter);

PrevUpHomeNext