Return true if a string contains a substring. More...
#include <mbl_stl_pred.h>
Public Member Functions | |
mbl_stl_pred_str_contains (const vcl_string &substr) | |
bool | operator() (const vcl_string &str) const |
Private Attributes | |
const vcl_string & | substr_ |
The sought substring. |
Return true if a string contains a substring.
Note without this you'd need bind2nd mem_fun which can cause reference to reference compile errors
Definition at line 20 of file mbl_stl_pred.h.
mbl_stl_pred_str_contains::mbl_stl_pred_str_contains | ( | const vcl_string & | substr | ) | [inline] |
Definition at line 25 of file mbl_stl_pred.h.
bool mbl_stl_pred_str_contains::operator() | ( | const vcl_string & | str | ) | const [inline] |
Definition at line 27 of file mbl_stl_pred.h.
const vcl_string& mbl_stl_pred_str_contains::substr_ [private] |
The sought substring.
Definition at line 23 of file mbl_stl_pred.h.