omni::erase_if

Defined in omni/String.h

template<typename Pred>
constexpr string::size_type omni::erase_if(string &str, Pred pred)

Erases all elements of str the satisfy pred.

Parameters
  • str – String to erase from.

  • pred – Predicate to check characters with.

Returns

The number of characters erased.