| 651 | } |
| 652 | |
| 653 | char string::back() const |
| 654 | { |
| 655 | if (empty()) { |
| 656 | return -1; |
| 657 | } |
| 658 | const char *pEnd = const_cast<string*>(this)->buf_end(); |
| 659 | if (pEnd == NIL) { |
| 660 | return -1; |
| 661 | } |
| 662 | return *(pEnd - 1); |
| 663 | } |
| 664 | |
| 665 | bool string::pop_back() |
| 666 | { |