We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ef8b3 commit 5a974f7Copy full SHA for 5a974f7
source/threads.tex
@@ -4867,12 +4867,12 @@
4867
atomic<shared_ptr<node>> head;
4868
4869
public:
4870
- auto find(T t) const {
+ shared_ptr<node> find(T t) const {
4871
auto p = head.load();
4872
while (p && p->t != t)
4873
p = p->next;
4874
4875
- return shared_ptr<node>(move(p));
+ return p;
4876
}
4877
4878
void push_front(T t) {
0 commit comments