Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Array_Matrix by
Revision 2:a25dba17218c, committed 2016-08-15
- Comitter:
- MikamiUitOpen
- Date:
- Mon Aug 15 07:11:16 2016 +0000
- Parent:
- 1:54b07f0d5ba1
- Child:
- 3:46b7fbd8155c
- Commit message:
- 3
Changed in this revision
| Array.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Array.hpp Mon Jul 25 13:37:16 2016 +0000
+++ b/Array.hpp Mon Aug 15 07:11:16 2016 +0000
@@ -3,7 +3,7 @@
// If you define "#define DEBUG_ARRAY_CHECK",
// range check of index is available.
//
-// 2016/07/25, Copyright (c) 2016 MIKAMI, Naoki
+// 2016/08/15, Copyright (c) 2016 MIKAMI, Naoki
//-----------------------------------------------------------------------
#include "mbed.h"
@@ -23,7 +23,7 @@
inline Array(int i, const T val[]); // constructor with assignment built-in array
~Array() { delete[] v_; } // destructor
inline void Fill(T val); // fill with same value
- inline void Assign(const T val[]); // assign built-in array
+ inline void Assign(const T val[]); // assign built-in array
void SetSize(int i); // setting size
int Length() const { return size_; } // get size of array
Array<T>& operator=(const Array<T>& a); // assignment
@@ -72,7 +72,7 @@
for (int n=0; n<size_; n++) v_[n] = val;
}
- // assign built-in array
+ // assign built-in array
template <class T> void Array<T>::Assign(const T val[])
{
for (int n=0; n<size_; n++) v_[n] = val[n];
