mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-06 03:56:08 +08:00
style: resolve -Wreorder (#2950)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
@@ -25,7 +25,7 @@ class Stack {
|
||||
*
|
||||
* @param size Maximum size of the stack
|
||||
*/
|
||||
Stack(int size) : stackSize(size), stackIndex(-1), stack(new T[size]) {}
|
||||
Stack(int size) : stack(new T[size]), stackSize(size), stackIndex(-1) {}
|
||||
|
||||
/**
|
||||
* @brief Checks if the stack is full
|
||||
|
||||
Reference in New Issue
Block a user