Public Member Functions | Private Attributes
mbl_stl_pred_str_contains Class Reference

Return true if a string contains a substring. More...

#include <mbl_stl_pred.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool mbl_stl_pred_str_contains::operator() ( const vcl_string &  str) const [inline]

Definition at line 27 of file mbl_stl_pred.h.


Member Data Documentation

const vcl_string& mbl_stl_pred_str_contains::substr_ [private]

The sought substring.

Definition at line 23 of file mbl_stl_pred.h.


The documentation for this class was generated from the following file: