add cpp function grep to anything