Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt *SetVal(int Value, int Index, int Len); | Set all calling object elements [Index]..[Index+Len-1] to Value. |
| 2 | TMtxVecInt *SetVal(int Value); | Set all calling object elements to Value. |
Overload 1: TMtxVecInt *SetVal(int Value, int Index, int Len);
Set all calling object elements [Index]..[Index+Len-1] to Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | int | |
| 2 | Index | int | |
| 3 | Len | int |
Remarks:
An exception is raised if array borders are overrun/underrun.
Examples
#include "Units.MtxVecInt.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;
void Example()
{
TVecInt* a;
CreateIt(a);
a->SetIt(DewArray<int>{1,2,3,4});
a->SetVal(5,2,2); // a = [1,1,5,5]
FreeIt(a);
}
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler
Overload 2: TMtxVecInt *SetVal(int Value);
Set all calling object elements to Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | int |
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler