1 #ifndef FWCore_Utilities_value_ptr_h 2 #define FWCore_Utilities_value_ptr_h 96 myP(orig.myP) { orig.myP=
nullptr; }
126 template <
typename U>
128 myP(createFrom(orig.
operator->())) {
131 template <
typename U>
143 myP(orig.
release()) { orig=
nullptr; }
162 operator bool_type()
const {
163 return myP !=
nullptr ?
173 template <
typename U>
196 template <
typename T>
206 template <
typename T,
typename U>
212 template <
typename T,
typename U>
218 template <
typename T,
typename U>
224 template <
typename T,
typename U>
232 #endif // FWCoreUtilities_value_ptr_h
value_ptr(value_ptr &&orig)
static T * clone(T const *p)
void swap(value_ptr &orig)
T const & operator*() const
void swap(Association< C > &lhs, Association< C > &rhs)
edm::propagate_const< T * > myP
static void destroy(T *p)
static T * createFrom(U const *p)
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
value_ptr & operator=(value_ptr< U > const &orig)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
value_ptr(value_ptr< U > const &orig)
void this_type_does_not_support_comparisons() const
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
value_ptr & operator=(value_ptr &&orig)
value_ptr & operator=(value_ptr const &orig)
value_ptr & operator=(std::unique_ptr< T > orig)
value_ptr(std::unique_ptr< T > orig)
value_ptr(value_ptr const &orig)
T const * operator->() const