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
78dec87a
Commit
78dec87a
authored
Jul 03, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typedef -> using
parent
ded0a3bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
include/fmt/format.h
include/fmt/format.h
+16
-16
No files found.
include/fmt/format.h
View file @
78dec87a
...
...
@@ -464,12 +464,12 @@ template <typename T> class counting_iterator {
mutable
T
blackhole_
;
public:
typedef
std
::
output_iterator_tag
iterator_category
;
typedef
T
value_type
;
typedef
std
::
ptrdiff_t
difference_type
;
typedef
T
*
pointer
;
typedef
T
&
reference
;
typedef
counting_iterator
_Unchecked_type
;
// Mark iterator as checked.
using
iterator_category
=
std
::
output_iterator_tag
;
using
value_type
=
T
;
using
difference_type
=
std
::
ptrdiff_t
;
using
pointer
=
T
*
;
using
reference
=
T
&
;
using
_Unchecked_type
=
counting_iterator
;
// Mark iterator as checked.
counting_iterator
()
:
count_
(
0
)
{}
...
...
@@ -499,12 +499,12 @@ template <typename OutputIt> class truncating_iterator_base {
:
out_
(
out
),
limit_
(
limit
),
count_
(
0
)
{}
public:
typedef
std
::
output_iterator_tag
iterator_category
;
typedef
void
difference_type
;
typedef
void
pointer
;
typedef
void
reference
;
typedef
truncating_iterator_base
_Unchecked_typ
e
;
// Mark iterator as checked.
using
iterator_category
=
std
::
output_iterator_tag
;
using
difference_type
=
void
;
using
pointer
=
void
;
using
reference
=
void
;
using
_Unchecked_type
=
truncating_iterator_bas
e
;
// Mark iterator as checked.
OutputIt
base
()
const
{
return
out_
;
}
std
::
size_t
count
()
const
{
return
count_
;
}
...
...
@@ -520,12 +520,12 @@ class truncating_iterator;
template
<
typename
OutputIt
>
class
truncating_iterator
<
OutputIt
,
std
::
false_type
>
:
public
truncating_iterator_base
<
OutputIt
>
{
typedef
std
::
iterator_traits
<
OutputIt
>
traits
;
using
traits
=
std
::
iterator_traits
<
OutputIt
>
;
mutable
typename
traits
::
value_type
blackhole_
;
public:
typedef
typename
traits
::
value_type
value_type
;
using
value_type
=
typename
traits
::
value_type
;
truncating_iterator
(
OutputIt
out
,
std
::
size_t
limit
)
:
truncating_iterator_base
<
OutputIt
>
(
out
,
limit
)
{}
...
...
@@ -550,7 +550,7 @@ template <typename OutputIt>
class
truncating_iterator
<
OutputIt
,
std
::
true_type
>
:
public
truncating_iterator_base
<
OutputIt
>
{
public:
typedef
typename
OutputIt
::
container_type
::
value_type
value_type
;
using
value_type
=
typename
OutputIt
::
container_type
::
value_type
;
truncating_iterator
(
OutputIt
out
,
std
::
size_t
limit
)
:
truncating_iterator_base
<
OutputIt
>
(
out
,
limit
)
{}
...
...
@@ -566,7 +566,7 @@ class truncating_iterator<OutputIt, std::true_type>
};
// Returns true if value is negative, false otherwise.
// Same as
(value < 0)
but doesn't produce warnings if T is an unsigned type.
// Same as
`value < 0`
but doesn't produce warnings if T is an unsigned type.
template
<
typename
T
,
FMT_ENABLE_IF
(
std
::
numeric_limits
<
T
>
::
is_signed
)
>
FMT_CONSTEXPR
bool
is_negative
(
T
value
)
{
return
value
<
0
;
...
...
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