12a89db5ca
member functions, add an isprint using a reference(!) to an unsigned character to work with normal pointers instead. *sigh*
13 lines
658 B
Text
13 lines
658 B
Text
$NetBSD: patch-af,v 1.1 2005/12/11 22:03:39 joerg Exp $
|
|
|
|
--- tmap.h.orig 2005-12-11 21:46:52.000000000 +0000
|
|
+++ tmap.h
|
|
@@ -54,7 +54,7 @@ class tmap: public tmap_base<K,T> {
|
|
// new functionality
|
|
|
|
/// return whether an element with key is contained or not
|
|
- bool contains(const K& key) const { return find(key) != end(); }
|
|
+ bool contains(const K& key) const { return find(key) != this->end(); }
|
|
/// access element read only (const)
|
|
// g++ 2.95.2 does not allow this:
|
|
// const T& operator[](const K& key) const { const_iterator i = find(key); if(i != end()) return i->second; else throw TNotFoundException(); } // throw(TNotFoundException)
|