From f007f7c398505354ee964576391a44440b5b92f9 Mon Sep 17 00:00:00 2001 From: Danilo Piparo <danilo.piparo@cern.ch> Date: Wed, 17 Aug 2016 09:43:06 +0200 Subject: [PATCH] Modernise tutorial --- tutorials/cont/TListAndSTL.C | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tutorials/cont/TListAndSTL.C b/tutorials/cont/TListAndSTL.C index ad022864683..28068dc785e 100644 --- a/tutorials/cont/TListAndSTL.C +++ b/tutorials/cont/TListAndSTL.C @@ -1,7 +1,7 @@ /// \file /// \ingroup tutorial_cont /// \notebook -nodraw -/// This is an example of using TList with STL algoritms in CINT. +/// This is an example of using TList with STL algoritms in CLING. /// /// #### Output produced by `.x TListAndSTL.C` /// \macro_output @@ -70,8 +70,7 @@ void TListAndSTL() //->>>>>>> Example #1 <<<<<<<- // running the std::for_each algorithm on the list - TIter iter(&list1); - for_each(iter.Begin(), TIter::End(), SEnumFunctor()); + for_each(list1.begin(), list1.end(), SEnumFunctor()); //->>>>>>> Example #2 <<<<<<<- // we can try to find something in the container -- GitLab