| 58 | typename stack_base |
| 59 | > |
| 60 | void stack_kernel_c<stack_base>:: |
| 61 | pop( |
| 62 | T& item |
| 63 | ) |
| 64 | { |
| 65 | |
| 66 | // make sure requires clause is not broken |
| 67 | DLIB_CASSERT(this->size() != 0, |
| 68 | "\tvoid stack::pop" |
| 69 | << "\n\tsize of stack should not be zero" |
| 70 | << "\n\tthis: " << this |
| 71 | ); |
| 72 | |
| 73 | // call the real function |
| 74 | stack_base::pop(item); |
| 75 | |
| 76 | } |
| 77 | |
| 78 | // ---------------------------------------------------------------------------------------- |
| 79 |