29 TObjString *str(
dynamic_cast<TObjString*
>(aObj));
33 cout <<
"Value: " << str->String().Data() << endl;
42 SFind(
const TString &aStr): fToFind(aStr) {
46 TObjString *str(
dynamic_cast<TObjString*
>(aObj));
47 return !str->String().CompareTo(fToFind);
50 const TString fToFind;
62 for (
int i = 0; i <
size; ++i) {
63 ss <<
"test string #" << i;
72 for_each(stringList.
begin(), stringList.
end(), SEnumFunctor());
77 string strToFind(
"test string #4");
78 SFind func(strToFind.c_str());
86 cerr <<
"Can't find the string: \"" << strToFind <<
"\" in the container" << endl;
92 cerr <<
"Can't find the string: \"" << strToFind <<
"\" in the container" << endl;
96 cout <<
"The string has been found: " << str->String().Data() << endl;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
TRObject operator()(const T1 &t1) const
static TIterCategory End()
void Add(TObject *obj) override
Collectable string class.