Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
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
json
Commits
d21d2983
Unverified
Commit
d21d2983
authored
Mar 28, 2019
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
fixed indentation
parent
23635704
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
99 deletions
+101
-99
include/nlohmann/detail/iterators/iterator_traits.hpp
include/nlohmann/detail/iterators/iterator_traits.hpp
+17
-15
include/nlohmann/detail/meta/is_sax.hpp
include/nlohmann/detail/meta/is_sax.hpp
+84
-84
No files found.
include/nlohmann/detail/iterators/iterator_traits.hpp
View file @
d21d2983
...
@@ -13,15 +13,16 @@ template <typename It, typename = void>
...
@@ -13,15 +13,16 @@ template <typename It, typename = void>
struct
iterator_types
{};
struct
iterator_types
{};
template
<
typename
It
>
template
<
typename
It
>
struct
iterator_types
<
struct
iterator_types
<
It
,
It
,
void_t
<
typename
It
::
difference_type
,
typename
It
::
value_type
,
typename
It
::
pointer
,
void_t
<
typename
It
::
difference_type
,
typename
It
::
value_type
,
typename
It
::
pointer
,
typename
It
::
reference
,
typename
It
::
iterator_category
>>
{
typename
It
::
reference
,
typename
It
::
iterator_category
>>
using
difference_type
=
typename
It
::
difference_type
;
{
using
value_type
=
typename
It
::
value_type
;
using
difference_type
=
typename
It
::
difference_type
;
using
pointer
=
typename
It
::
pointer
;
using
value_type
=
typename
It
::
value_type
;
using
reference
=
typename
It
::
reference
;
using
pointer
=
typename
It
::
pointer
;
using
iterator_category
=
typename
It
::
iterator_category
;
using
reference
=
typename
It
::
reference
;
using
iterator_category
=
typename
It
::
iterator_category
;
};
};
// This is required as some compilers implement std::iterator_traits in a way that
// This is required as some compilers implement std::iterator_traits in a way that
...
@@ -32,18 +33,19 @@ struct iterator_traits
...
@@ -32,18 +33,19 @@ struct iterator_traits
};
};
template
<
typename
T
>
template
<
typename
T
>
struct
iterator_traits
<
T
,
enable_if_t
<!
std
::
is_pointer
<
T
>::
value
>>
struct
iterator_traits
<
T
,
enable_if_t
<
!
std
::
is_pointer
<
T
>::
value
>>
:
iterator_types
<
T
>
:
iterator_types
<
T
>
{
{
};
};
template
<
typename
T
>
template
<
typename
T
>
struct
iterator_traits
<
T
*
,
enable_if_t
<
std
::
is_object
<
T
>::
value
>>
{
struct
iterator_traits
<
T
*
,
enable_if_t
<
std
::
is_object
<
T
>::
value
>>
using
iterator_category
=
std
::
random_access_iterator_tag
;
{
using
value_type
=
T
;
using
iterator_category
=
std
::
random_access_iterator_tag
;
using
difference_type
=
ptrdiff_t
;
using
value_type
=
T
;
using
pointer
=
T
*
;
using
difference_type
=
ptrdiff_t
;
using
reference
=
T
&
;
using
pointer
=
T
*
;
using
reference
=
T
&
;
};
};
}
// namespace detail
}
// namespace detail
}
// namespace nlohmann
}
// namespace nlohmann
include/nlohmann/detail/meta/is_sax.hpp
View file @
d21d2983
This diff is collapsed.
Click to expand it.
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