NumCpp  1.0
A C++ implementation of the Python Numpy library
swap.hpp
Go to the documentation of this file.
1 #pragma once
30 
32 
33 namespace nc
34 {
35  //============================================================================
36  // Method Description:
42  template<typename dtype>
43  void swap(NdArray<dtype>& inArray1, NdArray<dtype>& inArray2) noexcept
44  {
45  NdArray<dtype> tmp(std::move(inArray1));
46  inArray1 = std::move(inArray2);
47  inArray2 = std::move(tmp);
48  }
49 }
nc::NdArray< dtype >
nc
Definition: Coordinate.hpp:45
nc::swap
void swap(NdArray< dtype > &inArray1, NdArray< dtype > &inArray2) noexcept
Definition: swap.hpp:43
NdArrayCore.hpp