mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Added default constructors to automatically clear links.
This commit is contained in:
parent
f4630351a2
commit
6edd27698f
@ -114,6 +114,11 @@ namespace etl
|
||||
OPTION = OPTION_
|
||||
};
|
||||
|
||||
forward_link_base()
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
etl_next = nullptr;
|
||||
@ -329,6 +334,11 @@ namespace etl
|
||||
OPTION = OPTION_
|
||||
};
|
||||
|
||||
bidirectional_link_base()
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
etl_previous = nullptr;
|
||||
@ -662,6 +672,11 @@ namespace etl
|
||||
OPTION = OPTION_
|
||||
};
|
||||
|
||||
tree_link_base()
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
etl_parent = nullptr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user