string:: find() string:: copy(). ( N2798, 21.3.7.2 21.3.6.7, . 686/687) . , :: copy ": pos <= size()". , string:: find pos <= size().
. , , , rqeuirements, string:: npos. , string:: npos, 21.3.7.2/1.
N2798 = 08-0308, ISO/IEC:
21.3.7.2 basic_string::find [string::find]
size_type find(const basic_string<charT,traits,Allocator>& str,
size_type pos = 0) const;
1 : xpos, , , :
- pos <= xpos xpos + str.size() <= size();
- traits::eq(at(xpos+I), str.at(I)) I , str.
2 : xpos, xpos. npos.
3 : traits::eq().