Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/lockfree/detail/copy_payload.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
46 | 46 |
47 template <typename T> | 47 template <typename T> |
48 struct consume_via_copy | 48 struct consume_via_copy |
49 { | 49 { |
50 consume_via_copy(T & out): | 50 consume_via_copy(T & out): |
51 out(out) | 51 out_(out) |
52 {} | 52 {} |
53 | 53 |
54 template <typename U> | 54 template <typename U> |
55 void operator()(U & element) | 55 void operator()(U & element) |
56 { | 56 { |
57 copy_payload(element, out); | 57 copy_payload(element, out_); |
58 } | 58 } |
59 | 59 |
60 T & out; | 60 T & out_; |
61 }; | |
62 | |
63 struct consume_noop | |
64 { | |
65 template <typename U> | |
66 void operator()(const U &) | |
67 { | |
68 } | |
61 }; | 69 }; |
62 | 70 |
63 | 71 |
64 }}} | 72 }}} |
65 | 73 |