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 metadata_base

boost::histogram::axis::metadata_base — Meta data holder with space optimization for empty meta data types.

Synopsis

// In header: <boost/histogram/axis/metadata_base.hpp>

template<typename Metadata, 
         typename DetailMetadata = detail::replace_default<Metadata, std::string> > 
class metadata_base : private empty_value< DetailMetadata > {
public:
  // construct/copy/destruct
  metadata_base() = default;
  metadata_base(const metadata_base &) = default;
  metadata_base(metadata_base &&) noexcept;
  metadata_base(metadata_type &&) noexcept;
  metadata_base & operator=(const metadata_base &) = default;
  metadata_base & operator=(metadata_base &&) noexcept;

  // public member functions
  metadata_type & metadata() noexcept;
  const metadata_type & metadata() const noexcept;
  bool operator==(const metadata_base &) const noexcept;
  bool operator!=(const metadata_base &) const noexcept;
};

Description

metadata_base public construct/copy/destruct

  1. metadata_base() = default;
  2. metadata_base(const metadata_base &) = default;
  3. metadata_base(metadata_base && o) noexcept;
  4. metadata_base(metadata_type && o) noexcept;
  5. metadata_base & operator=(const metadata_base &) = default;
  6. metadata_base & operator=(metadata_base && o) noexcept;

metadata_base public member functions

  1. metadata_type & metadata() noexcept;
    Returns reference to metadata.
  2. const metadata_type & metadata() const noexcept;
    Returns reference to const metadata.
  3. bool operator==(const metadata_base & o) const noexcept;
  4. bool operator!=(const metadata_base & o) const noexcept;

PrevUpHomeNext