mirror of
https://github.com/ceph/ceph
synced 2025-04-01 14:51:13 +00:00
xlist: implement copy constructor
...so that I can have a std::map of them. Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
parent
fd04d5e662
commit
a6a0fd814b
@ -61,8 +61,11 @@ private:
|
|||||||
int _size;
|
int _size;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
xlist(const xlist& other);
|
xlist(const xlist& other) {
|
||||||
const xlist& operator=(const xlist& other);
|
_front = other._front;
|
||||||
|
_back = other._back;
|
||||||
|
_size = other._size;
|
||||||
|
}
|
||||||
|
|
||||||
xlist() : _front(0), _back(0), _size(0) {}
|
xlist() : _front(0), _back(0), _size(0) {}
|
||||||
~xlist() {
|
~xlist() {
|
||||||
|
Loading…
Reference in New Issue
Block a user