diff options
Diffstat (limited to 'src/jtutil/array.hh')
-rw-r--r-- | src/jtutil/array.hh | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/jtutil/array.hh b/src/jtutil/array.hh index cc3349d..f7e584d 100644 --- a/src/jtutil/array.hh +++ b/src/jtutil/array.hh @@ -21,6 +21,10 @@ // arrays cannot be copied or passed to functions by value; use pass // by reference instead. // +// FIXME: Maybe these should be in namespace jtutil::? +// + +// // Stroustrup ("The C++ Programming Language", 3rd edition, appendix C.7) // suggests the use of STL vectors of STL vectors to provide multidimensional // arrays. However, those "arrays" aren't contiguous in memory, so the @@ -43,8 +47,6 @@ //****************************************************************************** -namespace jtutil - { template <class fpt> class array1d { @@ -96,12 +98,9 @@ private: // min/max array bounds const int min_i_, max_i_; }; - }; // close namespace jtutil:: //****************************************************************************** -namespace jtutil - { template <class fpt> class array2d { @@ -175,12 +174,9 @@ private: const int min_i_, max_i_; const int min_j_, max_j_; }; - }; // close namespace jtutil:: //****************************************************************************** -namespace jtutil - { template <class fpt> class array3d { @@ -260,12 +256,9 @@ private: const int min_j_, max_j_; const int min_k_, max_k_; }; - }; // close namespace jtutil:: //****************************************************************************** -namespace jtutil - { template <class fpt> class array4d { @@ -357,4 +350,3 @@ private: const int min_k_, max_k_; const int min_l_, max_l_; }; - }; // close namespace jtutil:: |