From: Daniel Arndt Date: Mon, 24 May 2021 14:34:06 +0000 (-0400) Subject: Provide special member functions for TriaAccessor X-Git-Tag: v9.3.0~11^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e56ec2e5a44b1120495aa0f8f67a19f9ae5d5ff9;p=dealii.git Provide special member functions for TriaAccessor --- diff --git a/include/deal.II/grid/tria_accessor.h b/include/deal.II/grid/tria_accessor.h index a5a94aaa0d..a2d7c2a700 100644 --- a/include/deal.II/grid/tria_accessor.h +++ b/include/deal.II/grid/tria_accessor.h @@ -720,6 +720,16 @@ public: const int index = -1, const AccessorData * local_data = nullptr); + /** + * Similar to the copy assignment operator the copy constructor is deleted. + */ + TriaAccessor(const TriaAccessor &) = delete; + + /** + * Move construction is still allowed. + */ + TriaAccessor(TriaAccessor &&) = default; + /** * Conversion constructor. This constructor exists to make certain * constructs simpler to write in dimension independent code. For example, @@ -754,6 +764,17 @@ public: void operator=(const TriaAccessor &) = delete; + /** + * Move assignemt operator. Moving is allowed. + */ + void + operator=(TriaAccessor &&) = default; + + /** + * Defaulted destructor. + */ + ~TriaAcessor() = default; + /** * Test for the element being used or not. The return value is @p true for * all iterators that are either normal iterators or active iterators, only