omni::erase

Defined in omni/String.h

template<typename U>
constexpr string::size_type omni::erase(string &str, const U &val)

Erases all instances of val from str.

Parameters
  • str – String to erase from.

  • val – Character to erase.

Returns

The number of characters erased.