Displaying 1 result from an estimated 1 matches for "consturctor".
Did you mean:
constructor
2015 Jul 11
2
[LLVMdev] StringMap question
...ove semantics in constructor of StringMapImpl(
StringMapImpl &&RHS) {...} class in include/llvm/ADT/StringMap.h line 56.
Could anyone explain me the purpose of zeroing of all fields of RHS in the
body of this constructor if the declaration of the constructor uses move
semantics? Here is the consturctor code below:
*StringMapImpl(StringMapImpl &&RHS)*
* : TheTable(RHS.TheTable), NumBuckets(RHS.NumBuckets),*
* NumItems(RHS.NumItems), NumTombstones(RHS.NumTombstones),*
* ItemSize(RHS.ItemSize) {*
* RHS.TheTable = nullptr;*
* RHS.NumBuckets = 0;*
* RHS.NumItems =...