~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

Viewing changes to include/core/countedlist.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    }
66
66
    void push_front (const value_type& __x)
67
67
    {
68
 
        mCount++;
 
68
        ++mCount;
69
69
        Base::push_front (__x);
70
70
    }
71
71
    void push_back (const value_type& __x)
72
72
    {
73
 
        mCount++;
 
73
        ++mCount;
74
74
        Base::push_back (__x);
75
75
    }
76
76
    void pop_front ()
77
77
    {
78
78
        if (mCount > 0)
79
 
            mCount--;
 
79
            --mCount;
80
80
        Base::pop_front ();
81
81
    }
82
82
    void pop_back ()
83
83
    {
84
84
        if (mCount > 0)
85
 
            mCount--;
 
85
            --mCount;
86
86
        Base::pop_back ();
87
87
    }
88
88
    iterator insert (iterator __position, const value_type& __x)
89
89
    {
90
 
        mCount++;
 
90
        ++mCount;
91
91
        return Base::insert (__position, __x);
92
92
    }
93
93
    void insert (iterator __position, size_type __n, const value_type& __x)
98
98
    iterator erase (iterator __position)
99
99
    {
100
100
        if (mCount > 0)
101
 
            mCount--;
 
101
            --mCount;
102
102
        return Base::erase (__position);
103
103
    }
104
104
    void remove (const value_type& __value)
105
105
    {
106
106
        if (mCount > 0)
107
 
            mCount--;
 
107
            --mCount;
108
108
        Base::remove (__value);
109
109
    }
110
110