Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
01738d08
Commit
01738d08
authored
Aug 11, 2020
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add debug assertion to ilist
parent
c96be848
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/ilist.h
include/ilist.h
+4
-3
No files found.
include/ilist.h
View file @
01738d08
...
...
@@ -26,8 +26,7 @@ template <class Tag= void> struct ilist_node
{
ilist_node
()
#ifndef DBUG_OFF
:
next
(
NULL
),
prev
(
NULL
)
:
next
(
NULL
),
prev
(
NULL
)
#endif
{
}
...
...
@@ -70,11 +69,12 @@ template <class T, class Tag= void> class ilist
typedef
T
*
pointer
;
typedef
T
&
reference
;
Iterator
(
ListNode
*
node
)
:
node_
(
node
)
{}
Iterator
(
ListNode
*
node
)
:
node_
(
node
)
{
assert
(
node_
);
}
Iterator
&
operator
++
()
{
node_
=
node_
->
next
;
assert
(
node_
);
return
*
this
;
}
Iterator
operator
++
(
int
)
...
...
@@ -87,6 +87,7 @@ template <class T, class Tag= void> class ilist
Iterator
&
operator
--
()
{
node_
=
node_
->
prev
;
assert
(
node_
);
return
*
this
;
}
Iterator
operator
--
(
int
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment