Details
-
Improvement
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
4.1.3
-
None
-
all
Description
The naive implementation of std::basic_string::find() in string.cc is quite inefficient:
for (size_type _xpos = __pos; __xpos + __n <= size (); ++_xpos)
{ if (!traits_type::compare (_C_data + __xpos, __s, __n)) return __xpos; }return npos;
Attachments
Issue Links
- relates to
-
STDCXX-1035 Issue with string::find(const string& str, size_type pos=0)
- Closed