From Jason Turner

[string.find.last.of]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpal1k9fuf/{from.md → to.md} +44 -0
tmp/tmpal1k9fuf/{from.md → to.md} RENAMED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### `basic_string::find_last_of` <a id="string.find.last.of">[[string.find.last.of]]</a>
2
+
3
+ ``` cpp
4
+ size_type find_last_of(basic_string_view<charT, traits> sv, size_type pos = npos) const noexcept;
5
+ ```
6
+
7
+ *Effects:* Determines the highest position `xpos`, if possible, such
8
+ that both of the following conditions hold:
9
+
10
+ - `xpos <= pos` and `xpos < size()`;
11
+ - `traits::eq(at(xpos), sv.at(I))` for some element `I` of the data
12
+ referenced by `sv`.
13
+
14
+ *Returns:* `xpos` if the function can determine such a value for `xpos`.
15
+ Otherwise, returns `npos`.
16
+
17
+ ``` cpp
18
+ size_type find_last_of(const basic_string& str, size_type pos = npos) const noexcept;
19
+ ```
20
+
21
+ *Effects:* Equivalent to:
22
+ `return find_last_of(basic_string_view<charT, traits>(str), pos);`
23
+
24
+ ``` cpp
25
+ size_type find_last_of(const charT* s, size_type pos, size_type n) const;
26
+ ```
27
+
28
+ *Returns:* `find_last_of(basic_string_view<charT, traits>(s, n), pos)`.
29
+
30
+ ``` cpp
31
+ size_type find_last_of(const charT* s, size_type pos = npos) const;
32
+ ```
33
+
34
+ *Requires:* `s` points to an array of at least `traits::length(s) + 1`
35
+ elements of `charT`.
36
+
37
+ *Returns:* `find_last_of(basic_string_view<charT, traits>(s), pos)`.
38
+
39
+ ``` cpp
40
+ size_type find_last_of(charT c, size_type pos = npos) const;
41
+ ```
42
+
43
+ *Returns:* `find_last_of(basic_string(1, c), pos)`.
44
+