milena r1367: Replace list by vector

URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2007-10-22 Guillaume Duhamel <guillaume.duhamel@lrde.epita.fr> Replace list by vector. * util/abr.hh: Update list into vector. --- abr.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: trunk/milena/mln/util/abr.hh =================================================================== --- trunk/milena/mln/util/abr.hh (revision 1366) +++ trunk/milena/mln/util/abr.hh (revision 1367) @@ -28,7 +28,7 @@ #ifndef MLN_UTIL_ABR_HH # define MLN_UTIL_ABR_HH -# include <list> +# include <vector> # include <iostream> /*! @@ -60,7 +60,7 @@ T& elt_; s_abr<T>* father_; - std::list< s_abr<T>* > sons_; + std::vector< s_abr<T>* > sons_; }; @@ -97,7 +97,7 @@ s_abr<T>::print_rec (int n) const { std::cout << this->elt_ << std::endl; - typename std::list<s_abr<T>* >::const_iterator it = this->sons_.begin (); + typename std::vector<s_abr<T>* >::const_iterator it = this->sons_.begin (); for (; it != this->sons_.end (); ++it) { for (int i = 0; i < n; ++i) @@ -125,7 +125,7 @@ } else { - typename std::list<s_abr<T>* >::iterator it = this->sons_.begin (); + typename std::vector<s_abr<T>* >::iterator it = this->sons_.begin (); for (; it != this->sons_.end (); ++it) { if ((**it).search_rec (res, elt))
participants (1)
-
Guillaume Duhamel