Advertisement
KShah

Untitled

Nov 12th, 2021
659
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     const char& operator[](const size_t pos) const {
  2.         return str[pos];
  3.     }
  4.     // Квадратные скобки для неконст. строк
  5.     char& operator[](const size_t pos) {
  6.         return str[pos];
  7.     }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement