This is an example of using TList with STL algoritms in CLING.
Value: test string #0
Value: test string #1
Value: test string #2
Value: test string #3
Value: test string #4
Value: test string #5
Value: test string #6
Value: test string #7
Value: test string #8
Value: test string #9
The string has been found: test string #4
#include <algorithm>
#include <iostream>
#include <sstream>
return false;
if (!str)
return false;
cout << "Value: " << str->String().Data() << endl;
return true;
}
};
}
return !str->String().CompareTo(
fToFind);
}
private:
};
{
for (
int i = 0; i <
size; ++i) {
ss <<
"test string #" << i;
}
if (!(*found)) {
cerr <<
"Can't find the string: \"" <<
strToFind <<
"\" in the container" << endl;
return;
}
if (!str) {
cerr <<
"Can't find the string: \"" <<
strToFind <<
"\" in the container" << endl;
return;
}
cout << "The string has been found: " << str->String().Data() << endl;
}
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
TRObject operator()(const T1 &t1) const
const_iterator begin() const
const_iterator end() const
Collectable string class.
Mother of all ROOT objects.
- Author
- Anar Manafov
Definition in file TListAndSTL.C.