const TableIndices<rank> &previous_indices);
/**
- * Copy constructor. Not needed, and invisible, so private.
+ * Copy constructor.
*/
- Accessor (const Accessor &a);
+ Accessor (const Accessor &) = default;
public:
const TableIndices<rank> &previous_indices);
/**
- * Default constructor. Not needed, and invisible, so private.
+ * Default constructor. Not needed, so deleted.
*/
- Accessor ();
+ Accessor () = delete;
/**
- * Copy constructor. Not needed, and invisible, so private.
+ * Copy constructor.
*/
- Accessor (const Accessor &a);
+ Accessor (const Accessor &) = default;
public:
{}
- template <int rank, int dim, bool constness, int P, typename Number>
- Accessor<rank,dim,constness,P,Number>::
- Accessor (const Accessor &a)
- :
- tensor (a.tensor),
- previous_indices (a.previous_indices)
- {}
-
-
template <int rank, int dim, bool constness, int P, typename Number>
Accessor<rank,dim,constness,P-1,Number>
- template <int rank, int dim, bool constness, typename Number>
- Accessor<rank,dim,constness,1,Number>::
- Accessor (const Accessor &a)
- :
- tensor (a.tensor),
- previous_indices (a.previous_indices)
- {}
-
-
-
template <int rank, int dim, bool constness, typename Number>
typename Accessor<rank,dim,constness,1,Number>::reference
Accessor<rank,dim,constness,1,Number>::operator[] (const unsigned int i)