// SharedPolicyTable.cpp #include "ptr/SharedPolicyTable.h" #include std::ostream& operator<<(std::ostream& stream, const SharedPolicyTable& rhs) { if ( rhs.has_management() ) { stream << "Table has " << rhs.get_managing_reference_count() << " managing references of " << rhs.get_reference_count() << " total."; } else { stream << "Table does not manage and has " << rhs.get_reference_count() << " references."; } return stream; }