From c77dd0a4bd9465dc77527b938a7636fc7531eb33 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 8 Apr 2008 10:40:42 +0000 Subject: [PATCH] We do use templates now git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/doxygen/overviews/container.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/docs/doxygen/overviews/container.h b/docs/doxygen/overviews/container.h index 55d5a68585..847b987c0d 100644 --- a/docs/doxygen/overviews/container.h +++ b/docs/doxygen/overviews/container.h @@ -14,17 +14,14 @@ Classes: wxList, wxArray, wxVector wxWidgets uses itself several container classes including doubly-linked lists and dynamic arrays (i.e. arrays which expand automatically when they become -full). For both historical and portability reasons wxWidgets does not use STL -which provides the standard implementation of many container classes in C++. +full). For both historical and portability reasons wxWidgets does not require +the use of STL (which provides the standard implementation of many container +classes in C++) but it can be compiled in STL mode. Additionally, wxWidgets +provides the new wxVector class template which can be used like the std::vector +class and is actually just a typedef to std::vector if wxWidgets is compiled +in STL mode. -First of all, wxWidgets has existed since well before STL was written, and -secondly we don't believe that today compilers can deal really well with all of -STL classes (this is especially true for some less common platforms). Of -course, the compilers are evolving quite rapidly and hopefully their progress -will allow to base future versions of wxWidgets on STL - but this is not yet -the case. - -wxWidgets container classes don't pretend to be as powerful or full as STL +wxWidgets non-template container classes don't pretend to be as powerful or full as STL ones, but they are quite useful and may be compiled with absolutely any C++ compiler. They're used internally by wxWidgets, but may, of course, be used in your programs as well if you wish.