summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx/array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdimensionxx/dimensionxx/array.hpp')
-rw-r--r--libdimensionxx/dimensionxx/array.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdimensionxx/dimensionxx/array.hpp b/libdimensionxx/dimensionxx/array.hpp
index dfbf1c8..735e17a 100644
--- a/libdimensionxx/dimensionxx/array.hpp
+++ b/libdimensionxx/dimensionxx/array.hpp
@@ -18,14 +18,14 @@
* <http://www.gnu.org/licenses/>. *
*************************************************************************/
+// dmnsn_array* wrapper.
+
#ifndef DIMENSIONXX_ARRAY_HPP
#define DIMENSIONXX_ARRAY_HPP
#include <tr1/memory> // For tr1::shared_ptr
#include <cstdlib> // For size_t
-// dmnsn_array* wrapper.
-
namespace Dimension
{
// RAII scoped read-lock
@@ -148,6 +148,8 @@ namespace Dimension
return ret;
}
+ // Access the underlying dmnsn_array*
+
template <typename T>
dmnsn_array*
Array<T>::dmnsn()
@@ -170,6 +172,7 @@ namespace Dimension
return *m_array;
}
+ // Release the dmnsn_array*, if we are the only Array holding it
template <typename T>
dmnsn_array*
Array<T>::release()