MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / remove_any

Method remove_any

benchmarks/dlib/queue/queue_kernel_c.h:165–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 typename queue_base
164 >
165 void queue_kernel_c<queue_base>::
166 remove_any (
167 T& item
168 )
169 {
170 // make sure requires clause is not broken
171 DLIB_CASSERT( (this->size() > 0),
172 "\tvoid queue::remove_any"
173 << "\n\tsize() must be greater than zero if something is going to be removed"
174 << "\n\tsize(): " << this->size()
175 << "\n\tthis: " << this
176 );
177
178 // call the real function
179 queue_base::remove_any(item);
180 }
181
182// ----------------------------------------------------------------------------------------
183

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected