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
1a4e8927
Commit
1a4e8927
authored
Feb 11, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move output_range to format.h
parent
522de7b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
include/fmt/core.h
include/fmt/core.h
+0
-16
include/fmt/format.h
include/fmt/format.h
+16
-0
No files found.
include/fmt/core.h
View file @
1a4e8927
...
@@ -809,22 +809,6 @@ inline Container &get_container(std::back_insert_iterator<Container> it) {
...
@@ -809,22 +809,6 @@ inline Container &get_container(std::back_insert_iterator<Container> it) {
}
}
}
// namespace internal
}
// namespace internal
template
<
typename
OutputIt
,
typename
T
=
typename
OutputIt
::
value_type
>
class
output_range
{
private:
OutputIt
it_
;
// Unused yet.
typedef
void
sentinel
;
sentinel
end
()
const
;
public:
typedef
T
value_type
;
explicit
output_range
(
OutputIt
it
)
:
it_
(
it
)
{}
OutputIt
begin
()
const
{
return
it_
;
}
};
// Formatting context.
// Formatting context.
template
<
typename
OutputIt
,
typename
Char
>
template
<
typename
OutputIt
,
typename
Char
>
class
basic_context
:
class
basic_context
:
...
...
include/fmt/format.h
View file @
1a4e8927
...
@@ -2727,6 +2727,22 @@ void basic_writer<Range>::write_double(T value, const format_specs &spec) {
...
@@ -2727,6 +2727,22 @@ void basic_writer<Range>::write_double(T value, const format_specs &spec) {
write_padded
(
n
,
as
,
double_writer
{
n
,
sign
,
buffer
});
write_padded
(
n
,
as
,
double_writer
{
n
,
sign
,
buffer
});
}
}
template
<
typename
OutputIt
,
typename
T
=
typename
OutputIt
::
value_type
>
class
output_range
{
private:
OutputIt
it_
;
// Unused yet.
typedef
void
sentinel
;
sentinel
end
()
const
;
public:
typedef
T
value_type
;
explicit
output_range
(
OutputIt
it
)
:
it_
(
it
)
{}
OutputIt
begin
()
const
{
return
it_
;
}
};
// A range where begin() returns back_insert_iterator.
// A range where begin() returns back_insert_iterator.
template
<
typename
Container
>
template
<
typename
Container
>
class
back_insert_range
:
class
back_insert_range
:
...
...
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