Changeset 3589
- Timestamp:
- Jan 19, 2017, 3:10:56 PM (7 years ago)
- Location:
- trunk/yat/utility
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/Vector.cc
r3587 r3589 237 237 238 238 239 Vector& Vector::operator=(Vector&& other ) 240 { 241 std::swap(vec_, other.vec_); 242 std::swap(const_vec_, other.const_vec_); 243 return *this; 244 } 245 246 239 247 }}} // of namespace utility, yat, and thep -
trunk/yat/utility/Vector.h
r3587 r3589 144 144 const Vector& operator=(const Vector&); 145 145 146 #ifdef YAT_HAVE_RVALUE 147 /** 148 \brief The move assignment operator. 149 150 \note Invalidates views and iterators of Vector. 151 152 \return A reference to the resulting Vector. 153 */ 154 Vector& operator=(Vector&&); 155 #endif 156 146 157 /** 147 158 \brief The assignment operator.
Note: See TracChangeset
for help on using the changeset viewer.