NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ operator=() [2/2]

template<typename T >
herm_matrix_timestep< T > & cntr::herm_matrix_timestep< T >::operator= ( herm_matrix_timestep< T > &&  g)
noexcept

Definition at line 227 of file cntr_herm_matrix_timestep_impl.hpp.

227  {
228  if (&g == this)
229  return *this;
230 
231  data_ = g.data_;
232  tstp_ = g.tstp_;
233  ntau_ = g.ntau_;
234  size1_ = g.size1_;
235  size2_ = g.size2_;
236  element_size_ = g.element_size_;
237  total_size_ = g.total_size_;
238  sig_ = g.sig_;
239 
240  g.data_ = nullptr;
241  g.tstp_ = 0;
242  g.ntau_ = 0;
243  g.size1_ = 0;
244  g.size2_ = 0;
245  g.element_size_ = 0;
246  g.total_size_ = 0;
247 
248  return *this;
249 }