Swap.cpp 534 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) 2008-2023 the Urho3D project
  2. // License: MIT
  3. #include "../Precompiled.h"
  4. #include "../Container/ListBase.h"
  5. namespace Urho3D
  6. {
  7. template <> void Swap<String>(String& first, String& second)
  8. {
  9. first.Swap(second);
  10. }
  11. template <> void Swap<VectorBase>(VectorBase& first, VectorBase& second)
  12. {
  13. first.Swap(second);
  14. }
  15. template <> void Swap<ListBase>(ListBase& first, ListBase& second)
  16. {
  17. first.Swap(second);
  18. }
  19. template <> void Swap<HashBase>(HashBase& first, HashBase& second)
  20. {
  21. first.Swap(second);
  22. }
  23. }