Paste number 153933: c++

Paste number 153933: c++
Pasted by: phf
When:7 years, 9 months ago
Share:Tweet this! |
Paste contents:
Raw Source | XML | Display As
using namespace std;

class Foo {
  string tag;
  Foo(string tag) {
    this->tag = tag;
    cout<<tag<<": i live"<<endl;
  ~Foo() {
    cout<<tag<<": i die"<<endl;

int main() {
  map<string, Foo> foo;
  foo.insert(make_pair("a", Foo("a")));

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.