1 #ifndef cetlib_maybe_ref_h 2 #define cetlib_maybe_ref_h 44 std::ostream& operator<<(std::ostream& os, maybe_ref<T>
const& item);
64 explicit operator bool()
const {
return isValid(); }
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)
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
T & ref_iff_valid() const
void swap(exempt_ptr< E > &, exempt_ptr< E > &) noexcept
bool operator==(exempt_ptr< E > const &, exempt_ptr< E > const &)
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
void swap(maybe_ref< T > &, maybe_ref< T > &)