util/IntrusiveForwardList: remove unnecessary initializer from hook
This commit is contained in:
parent
963ff846ff
commit
7b3d870516
@ -42,7 +42,7 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
struct IntrusiveForwardListNode {
|
struct IntrusiveForwardListNode {
|
||||||
IntrusiveForwardListNode *next = nullptr;
|
IntrusiveForwardListNode *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct IntrusiveForwardListHook {
|
struct IntrusiveForwardListHook {
|
||||||
@ -122,7 +122,7 @@ template<typename T,
|
|||||||
typename HookTraits=IntrusiveForwardListBaseHookTraits<T>,
|
typename HookTraits=IntrusiveForwardListBaseHookTraits<T>,
|
||||||
bool constant_time_size=false>
|
bool constant_time_size=false>
|
||||||
class IntrusiveForwardList {
|
class IntrusiveForwardList {
|
||||||
IntrusiveForwardListNode head;
|
IntrusiveForwardListNode head{nullptr};
|
||||||
|
|
||||||
[[no_unique_address]]
|
[[no_unique_address]]
|
||||||
OptionalCounter<constant_time_size> counter;
|
OptionalCounter<constant_time_size> counter;
|
||||||
|
Loading…
Reference in New Issue
Block a user