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

Add assignment operators and copy constructors

parent 89219e1f
No related branches found
No related tags found
No related merge requests found
Pipeline #77673 failed
......@@ -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.
Finish editing this message first!
Please register or to comment