| 683 | |
| 684 | template<typename CharT> |
| 685 | inline typename basic_cstring<CharT>::value_ret_type |
| 686 | last_char( basic_cstring<CharT> source ) |
| 687 | { |
| 688 | typedef typename basic_cstring<CharT>::value_ret_type res_type; |
| 689 | |
| 690 | return source.is_empty() ? static_cast<res_type>(0) : *(source.end()-1); |
| 691 | } |
| 692 | |
| 693 | //____________________________________________________________________________// |
| 694 |