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