forked from OSchip/llvm-project
[LCG] Make the iterator move constructable (and thus movable in general)
now that there is essentially no cost to doing so. Yay C++11. llvm-svn: 203447
This commit is contained in:
parent
2b85e546f2
commit
fdb30c6e0e
|
@ -132,7 +132,7 @@ public:
|
|||
|
||||
public:
|
||||
iterator(const iterator &Arg) : G(Arg.G), NI(Arg.NI) {}
|
||||
|
||||
iterator(iterator &&Arg) : G(Arg.G), NI(std::move(Arg.NI)) {}
|
||||
iterator &operator=(iterator Arg) {
|
||||
std::swap(Arg, *this);
|
||||
return *this;
|
||||
|
|
Loading…
Reference in New Issue