13void cnt001_basictseq()
 
   15   cout << 
"Loop on sequence of integers from 0 to 10" << endl;
 
   16   for (
auto i : 
TSeqI(10)) {
 
   17      cout << 
"Element " << i << endl;
 
   20   cout << 
"Loop on sequence of integers from -5 to 29 in steps of 6" << endl;
 
   21   for (
auto i : 
TSeqI(-5, 29, 6)) {
 
   22      cout << 
"Element " << i << endl;
 
   25   cout << 
"Loop backwards on sequence of integers from 50 to 30 in steps of 3" << endl;
 
   26   for (
auto i : 
TSeqI(50, 30, -3)) {
 
   27      cout << 
"Element " << i << endl;
 
   30   cout << 
"stl algorithm, for_each" << endl;
 
   32   std::for_each(std::begin(ulSeq),std::end(ulSeq),[](
ULong_t i){cout << 
"For each: " << i <<endl;});
 
   34   cout << 
"Random access: 3rd element is " << ulSeq[2] << endl;
 
   36   cout << 
"Loop using MakeSeq" << endl;
 
   37   for (
auto i : 
MakeSeq(1000000000000UL, 1000000000003UL)) {
 
   38      cout << 
"Element " << i << endl;
 
A pseudo container class which is a generator of indices.
 
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.