Skip to content
Snippets Groups Projects
Commit d39c44e3 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Add assignment operators and copy constructors

parent 107d27d4
No related branches found
No related tags found
1 merge request!1433Add Tensor container based on mdarray and a TensorSpan based of mdspan
......@@ -164,6 +164,27 @@ public:
: base_type{Std::mdspan(other)}
{}
/// \brief Copy constructor with default behavior
constexpr Tensor (const Tensor&) = default;
/// \brief Move constructor with default behavior
constexpr Tensor (Tensor&&) = default;
/// @}
/// \name Assignment operators
/// @{
/// \brief Assignment operators inherited from the mixin class and storage class
using base_type::operator=;
/// \brief Copy assignment-operator with default behavior
constexpr Tensor& operator= (const Tensor&) = default;
/// \brief Move assignment-operator with default behavior
constexpr Tensor& operator= (Tensor&&) = default;
/// @}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment