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
12f46838
Commit
12f46838
authored
Jun 13, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make iterator_t an alias template
parent
874d6727
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
include/fmt/format.h
include/fmt/format.h
+4
-5
No files found.
include/fmt/format.h
View file @
12f46838
...
@@ -266,9 +266,8 @@ inline Dest bit_cast(const Source& source) {
...
@@ -266,9 +266,8 @@ inline Dest bit_cast(const Source& source) {
}
}
// An implementation of iterator_t for pre-C++20 systems.
// An implementation of iterator_t for pre-C++20 systems.
template
<
typename
T
>
struct
iterator_t
{
template
<
typename
T
>
typedef
decltype
(
std
::
begin
(
std
::
declval
<
const
T
&>
()))
type
;
using
iterator_t
=
decltype
(
std
::
begin
(
std
::
declval
<
T
&>
()));
};
template
<
typename
Allocator
>
template
<
typename
Allocator
>
typename
Allocator
::
value_type
*
allocate
(
Allocator
&
alloc
,
std
::
size_t
n
)
{
typename
Allocator
::
value_type
*
allocate
(
Allocator
&
alloc
,
std
::
size_t
n
)
{
...
@@ -3313,13 +3312,13 @@ arg_join<It, wchar_t> join(It begin, It end, wstring_view sep) {
...
@@ -3313,13 +3312,13 @@ arg_join<It, wchar_t> join(It begin, It end, wstring_view sep) {
\endrst
\endrst
*/
*/
template
<
typename
Range
>
template
<
typename
Range
>
arg_join
<
typename
internal
::
iterator_t
<
Range
>::
type
,
char
>
join
(
arg_join
<
internal
::
iterator_t
<
const
Range
>
,
char
>
join
(
const
Range
&
range
,
string_view
sep
)
{
const
Range
&
range
,
string_view
sep
)
{
return
join
(
std
::
begin
(
range
),
std
::
end
(
range
),
sep
);
return
join
(
std
::
begin
(
range
),
std
::
end
(
range
),
sep
);
}
}
template
<
typename
Range
>
template
<
typename
Range
>
arg_join
<
typename
internal
::
iterator_t
<
Range
>::
type
,
wchar_t
>
join
(
arg_join
<
internal
::
iterator_t
<
const
Range
>
,
wchar_t
>
join
(
const
Range
&
range
,
wstring_view
sep
)
{
const
Range
&
range
,
wstring_view
sep
)
{
return
join
(
std
::
begin
(
range
),
std
::
end
(
range
),
sep
);
return
join
(
std
::
begin
(
range
),
std
::
end
(
range
),
sep
);
}
}
...
...
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