...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::histogram::axis::metadata_base — Meta data holder with space optimization for empty meta data types.
// In header: <boost/histogram/axis/metadata_base.hpp> template<typename Metadata> class metadata_base { 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; metadata_type & metadata() const noexcept; };
Allows write-access to metadata even if const.
metadata_base
public
construct/copy/destructmetadata_base() = default;
metadata_base(const metadata_base &) = default;
metadata_base(metadata_base && o) noexcept;
metadata_base(metadata_type && o) noexcept;
metadata_base & operator=(const metadata_base &) = default;
metadata_base & operator=(metadata_base && o) noexcept;