Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
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
Libraries
fmt
Commits
0c136381
Commit
0c136381
authored
Jan 27, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move back_insert_range to format.h
parent
5060568f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
include/fmt/core.h
include/fmt/core.h
+0
-12
include/fmt/format.h
include/fmt/format.h
+12
-0
No files found.
include/fmt/core.h
View file @
0c136381
...
...
@@ -864,18 +864,6 @@ class output_range {
OutputIt
begin
()
const
{
return
it_
;
}
};
// A range where begin() returns back_insert_iterator.
template
<
typename
Container
>
class
back_insert_range
:
public
output_range
<
std
::
back_insert_iterator
<
Container
>>
{
using
base
=
output_range
<
std
::
back_insert_iterator
<
Container
>>
;
public:
using
value_type
=
typename
Container
::
value_type
;
using
base
::
base
;
back_insert_range
(
Container
&
c
)
:
base
(
std
::
back_inserter
(
c
))
{}
};
// Formatting context.
template
<
typename
OutputIt
,
typename
Char
>
class
basic_context
:
...
...
include/fmt/format.h
View file @
0c136381
...
...
@@ -2630,6 +2630,18 @@ void basic_writer<Range>::write_double(T value, const format_specs &spec) {
});
}
// A range where begin() returns back_insert_iterator.
template
<
typename
Container
>
class
back_insert_range
:
public
output_range
<
std
::
back_insert_iterator
<
Container
>>
{
using
base
=
output_range
<
std
::
back_insert_iterator
<
Container
>>
;
public:
using
value_type
=
typename
Container
::
value_type
;
using
base
::
base
;
back_insert_range
(
Container
&
c
)
:
base
(
std
::
back_inserter
(
c
))
{}
};
using
writer
=
basic_writer
<
back_insert_range
<
internal
::
buffer
>>
;
using
wwriter
=
basic_writer
<
back_insert_range
<
internal
::
wbuffer
>>
;
...
...
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