[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:
Chandler Carruth 2014-03-10 08:08:47 +00:00
parent 2b85e546f2
commit fdb30c6e0e
1 changed files with 1 additions and 1 deletions

View File

@ -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;