summaryrefslogtreecommitdiff
path: root/o3tl/qa/cow_wrapper_clients.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'o3tl/qa/cow_wrapper_clients.hxx')
-rw-r--r--o3tl/qa/cow_wrapper_clients.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/o3tl/qa/cow_wrapper_clients.hxx b/o3tl/qa/cow_wrapper_clients.hxx
index 0cd1b4a0860a..48b745a93564 100644
--- a/o3tl/qa/cow_wrapper_clients.hxx
+++ b/o3tl/qa/cow_wrapper_clients.hxx
@@ -186,6 +186,7 @@ public:
cow_wrapper_client5& operator=( const cow_wrapper_client5& );
cow_wrapper_client5& operator=( cow_wrapper_client5&& );
+ int queryUnmodified() const { return *maImpl; }
sal_uInt32 use_count() const { return maImpl.use_count(); }
bool operator==( const cow_wrapper_client5& rRHS ) const;
@@ -194,6 +195,14 @@ public:
private:
o3tl::cow_wrapper< int, BogusRefCountPolicy > maImpl;
};
+
+template< typename charT, typename traits >
+inline std::basic_ostream<charT, traits> & operator <<(
+ std::basic_ostream<charT, traits> & stream, const cow_wrapper_client5& client )
+{
+ return stream << client.queryUnmodified();
+}
+
} // namespace o3tltests
#endif // INCLUDED_O3TL_QA_COW_WRAPPER_CLIENTS_HXX