reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

usr/include/c++/7.4.0/bits/basic_string.tcc
   61       if (this == &__s)
   64       _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator());
   67 	if (__s._M_is_local())
   69 	    if (length() && __s.length())
   72 		traits_type::copy(__tmp_data, __s._M_local_buf,
   74 		traits_type::copy(__s._M_local_buf, _M_local_buf,
   79 	    else if (__s.length())
   81 		traits_type::copy(_M_local_buf, __s._M_local_buf,
   83 		_M_length(__s.length());
   84 		__s._M_set_length(0);
   89 		traits_type::copy(__s._M_local_buf, _M_local_buf,
   91 		__s._M_length(length());
   98 	    const size_type __tmp_capacity = __s._M_allocated_capacity;
   99 	    traits_type::copy(__s._M_local_buf, _M_local_buf,
  101 	    _M_data(__s._M_data());
  102 	    __s._M_data(__s._M_local_buf);
  102 	    __s._M_data(__s._M_local_buf);
  108 	  if (__s._M_is_local())
  110 	      traits_type::copy(_M_local_buf, __s._M_local_buf,
  112 	      __s._M_data(_M_data());
  118 	      _M_data(__s._M_data());
  119 	      __s._M_data(__tmp_ptr);
  120 	      _M_capacity(__s._M_allocated_capacity);
  122 	  __s._M_capacity(__tmp_capacity);
  126       _M_length(__s.length());
  127       __s._M_length(__tmp_length);