4. Write a function named “containsIgnoreCase” that accepts a vector of BoolVariable object pointers and a search string
Posted: Fri May 20, 2022 2:56 pm
4. Write a function named “containsIgnoreCase” that accepts a
vector of BoolVariable object pointers and a search string. It will
return the list of BoolVariable objects that have the variable
names containing that given search string (case-insensitive). In
addition, it will also return the count of all the variable objects
that have the exact match (equal to the search string). Please note
that the list can contain pointers to BoolVariable objects as well
as any of its derived class objects such as IntVariable objects
vector of BoolVariable object pointers and a search string. It will
return the list of BoolVariable objects that have the variable
names containing that given search string (case-insensitive). In
addition, it will also return the count of all the variable objects
that have the exact match (equal to the search string). Please note
that the list can contain pointers to BoolVariable objects as well
as any of its derived class objects such as IntVariable objects