Advertisement
KShah

Untitled

Nov 12th, 2021
540
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     char& front() {
  2.         return str[0];
  3.     }
  4.    
  5.     const char& front() const{
  6.         return str[0];
  7.     }
  8.  
  9.     char& back() {
  10.         return str[sz - 1];
  11.     }
  12.  
  13.     const char& back() const {
  14.         return str[sz - 1];
  15.     }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement