String.h

Go to the documentation of this file.
00001 #include <string>
00002 #include <cstring>
00003 
00004 // If defined, use a malloc-based allocator for String instead
00005 // of the standard pool allocator. The pool allocator causes ccmalloc
00006 // to complain incorrectly about memory leaks.
00007 
00008 #ifdef STRING_LEAK_DEBUG
00009 
00010 #if __GNUC__ >= 3
00011 #       include <bits/stl_alloc.h>
00012 #else
00013 #       include <stl_alloc.h>
00014 #endif
00015 
00016         typedef std::basic_string<char,
00017 #if __GNUC__ >= 3
00018                         std::char_traits<char>,
00019                         std::__allocator<char, std::__malloc_alloc_template<0> >
00020 #else
00021                         std::string_char_traits<char>,
00022                         std::malloc_alloc
00023 #endif
00024                          >
00025                 dbgstring;
00026 
00027         typedef dbgstring String;
00028 
00029 #else
00030         typedef std::string String;
00031 #endif
Generated on Mon Oct 4 10:39:55 2010 for Matching.kdevelop by  doxygen 1.6.3