Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Memory members
- struct mem {
- string p, r, s; // prefix, root, suffix
- void clear() {
- p.clear();
- r.clear();
- s.clear();
- }
- operator string() const { return p+r+s; }
- string operator+(const mem& m) {
- return s + (string)m;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment