mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-02 02:02:23 +08:00
style: resolve -Wreorder (#2950)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
@@ -72,7 +72,7 @@ class uint256_t {
|
||||
*/
|
||||
template <typename T, typename = typename std::enable_if<
|
||||
std::is_integral<T>::value, T>::type>
|
||||
explicit uint256_t(T low) : s(low), f(0) {}
|
||||
explicit uint256_t(T low) : f(0), s(low) {}
|
||||
|
||||
/**
|
||||
* @brief Parameterized constructor
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -39,9 +39,9 @@ class Node {
|
||||
* @param item the first value we insert to the node
|
||||
*/
|
||||
explicit Node(int64_t item)
|
||||
: count(1),
|
||||
items({{item, 0, 0}}),
|
||||
children({{nullptr, nullptr, nullptr, nullptr}}) {}
|
||||
: items({{item, 0, 0}}),
|
||||
children({{nullptr, nullptr, nullptr, nullptr}}),
|
||||
count(1) {}
|
||||
|
||||
/**
|
||||
* @brief Get the item count that current saved in the node
|
||||
|
||||
Reference in New Issue
Block a user