+class show_text {
+public:
+ show_text(ostream & o) : os(o) {}
+ void operator()(TextCache::value_type const & vt) {
+ os << "\tBuffer: " << vt.first
+ << "\tWidth: " << vt.second.first << endl;
+ }
+private:
+ ostream & os;
+};
+
+
+class delete_text {
+public:
+ void operator()(TextCache::value_type & vt) {
+ delete vt.second.second;
+ }
+};
+
+} // namespace anon
+
+