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 for the latest Boost documentation.
PrevUpHomeNext

Struct template unique_ptr_data

boost::move_upd::unique_ptr_data

Synopsis

// In header: <boost/move/unique_ptr.hpp>

template<typename P, typename D, 
         bool  = bmupmu::is_unary_function<D>::value || bmupmu::is_reference<D>::value> 
struct unique_ptr_data {
  // types
  typedef deleter_types< D >::deleter_arg_type1 deleter_arg_type1;
  typedef deleter_types< D >::del_ref           del_ref;          
  typedef deleter_types< D >::del_cref          del_cref;         

  // construct/copy/destruct
  unique_ptr_data() noexcept;
  explicit unique_ptr_data(P) noexcept;
  unique_ptr_data(P, deleter_arg_type1) noexcept;
  template<typename U> unique_ptr_data(P, U &&) noexcept;
  unique_ptr_data(const unique_ptr_data &);
  unique_ptr_data & operator=(const unique_ptr_data &);

  // public member functions
  del_ref deleter();
  del_cref deleter() const;

  // public data members
  P m_p;
  D d;
};

Description

unique_ptr_data public construct/copy/destruct

  1. unique_ptr_data() noexcept;
  2. explicit unique_ptr_data(P p) noexcept;
  3. unique_ptr_data(P p, deleter_arg_type1 d1) noexcept;
  4. template<typename U> unique_ptr_data(P p, U && d1) noexcept;
  5. unique_ptr_data(const unique_ptr_data &);
  6. unique_ptr_data & operator=(const unique_ptr_data &);

unique_ptr_data public member functions

  1. del_ref deleter();
  2. del_cref deleter() const;

PrevUpHomeNext