1 #ifndef cetlib_maybe_ref_h 2 #define cetlib_maybe_ref_h 44 std::ostream& operator<<(std::ostream& os, maybe_ref<T>
const& item);
104 throw std::logic_error(
"cet::maybe_ref<>: referent does not exist");
122 return (&left.
ref()) == (&right.
ref());
127 cet::operator<<(std::ostream& os, maybe_ref<T>
const& item)
void swap(maybe_ref &other)
T & ref_iff_valid() const
constexpr bool operator==(exempt_ptr< E >, exempt_ptr< E >) noexcept
void swap(exempt_ptr< E > &, exempt_ptr< E > &) noexcept
void swap(maybe_ref< T > &, maybe_ref< T > &)