예제 #1
0
 std::shared_ptr<T> wait_and_pop()
 {
     std::unique_ptr<node> const old_head = wait_pop_head();
     return old_head->data;
 }
예제 #2
0
파일: listing_6.9.cpp 프로젝트: AnnYN/CCiA
 void wait_and_pop(T& value)
 {
     std::unique_ptr<node> const old_head=wait_pop_head(value);
 }