~ubuntu-branches/ubuntu/saucy/enigma/saucy

« back to all changes in this revision

Viewing changes to lib-src/enigma-core/ecl_alist.hh

  • Committer: Package Import Robot
  • Author(s): Jonathan Wiltshire
  • Date: 2012-05-12 12:03:28 UTC
  • mfrom: (5.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120512120328-0va9ktw5pv17tzj1
Tags: 1.10~~pre-alpha+r2210-1.3
* Non-maintainer upload.
* Add build-dependency on libpng-dev (Closes: #669536)

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        VAL &operator[] (const key_type &key) { 
62
62
            iterator i=find(key);
63
63
            if (i==this->end())
64
 
                i=insert(this->end(), make_pair(key, VAL()));
 
64
                i=this->insert(this->end(), make_pair(key, VAL()));
65
65
            return i->second;
66
66
        }
67
67
        
68
68
        void remove_key(const key_type &key) {
69
69
            iterator i = find(key);
70
70
            if (i != this->end())
71
 
                erase(i);
 
71
                this->erase(i);
72
72
        }
73
73
    };
74
74
}