Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
28845b96
Commit
28845b96
authored
Sep 04, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update circular_q.h
parent
98ec35ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
circular_q.h
include/spdlog/details/circular_q.h
+7
-8
No files found.
include/spdlog/details/circular_q.h
View file @
28845b96
...
...
@@ -11,6 +11,12 @@ namespace spdlog {
template
<
typename
T
>
class
circular_q
{
size_t
max_items_
=
0
;
typename
std
::
vector
<
T
>::
size_type
head_
=
0
;
typename
std
::
vector
<
T
>::
size_type
tail_
=
0
;
size_t
overrun_counter_
=
0
;
std
::
vector
<
T
>
v_
;
public
:
using
item_type
=
T
;
...
...
@@ -84,14 +90,7 @@ namespace spdlog {
return
overrun_counter_
;
}
private
:
size_t
max_items_
=
0
;
typename
std
::
vector
<
T
>::
size_type
head_
=
0
;
typename
std
::
vector
<
T
>::
size_type
tail_
=
0
;
size_t
overrun_counter_
=
0
;
std
::
vector
<
T
>
v_
;
private
:
void
copy_moveable
(
circular_q
&&
other
)
SPDLOG_NOEXCEPT
{
max_items_
=
other
.
max_items_
;
...
...
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