Last ...
This commit is contained in:
@@ -10362,6 +10362,35 @@ bool GetLastItem(
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Remove Last Item of Specified Buffer ...
|
||||
template <typename T>
|
||||
bool RemoveLastItem(
|
||||
T &buffer[] // Specified Buffer
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
int count = ArraySize(buffer);
|
||||
result = IsValidSize(count);
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
ArrayRemove(
|
||||
buffer,
|
||||
count - 1,
|
||||
1 //
|
||||
);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Search Array For Specific Item ...
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user