#include #include #include using namespace std; using namespace boost; int main() { string test_sequence("TEST_**???***_TEST"); cout << "test_sequence: " << test_sequence << endl; string trimmed1 = trim_all_copy_if(test_sequence, is_any_of("\\/:*?\"<>|")); cout << "trim_all_copy_if(): " << trimmed1 << endl; string trimmed2 = trim_all_copy_if(test_sequence, is_any_of("\\/:\\*?\"<>|")); cout << "trim_all_copy_if(): " << trimmed2 << endl; string trimmed3 = trim_fill_copy_if(test_sequence, "", is_any_of("\\/:*?\"<>|")); cout << "trim_fill_copy_if(,\"=\"): " << trimmed3 << endl; return 0; }