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
e3ab0bc7
Commit
e3ab0bc7
authored
Apr 25, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addressing issue #62
parent
89a84919
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
100 deletions
+28
-100
src/json.hpp
src/json.hpp
+14
-50
src/json.hpp.re2c
src/json.hpp.re2c
+14
-50
No files found.
src/json.hpp
View file @
e3ab0bc7
...
...
@@ -11,6 +11,7 @@
#define _NLOHMANN_JSON
#include <algorithm>
#include <ciso646>
#include <cmath>
#include <cstdio>
#include <functional>
...
...
@@ -86,40 +87,19 @@ class basic_json
// container types //
/////////////////////
// forward declarations
class
iterator
;
class
const_iterator
;
class
reverse_iterator
;
class
const_reverse_iterator
;
/*!
@brief the type of elements in a basic_json container
@ingroup container
*/
/// the type of elements in a basic_json container
using
value_type
=
basic_json
;
/*!
@brief the type of an element reference
@ingroup container
*/
/// the type of an element reference
using
reference
=
value_type
&
;
/*!
@brief the type of an element const reference
@ingroup container
*/
/// the type of an element const reference
using
const_reference
=
const
value_type
&
;
/*!
@brief a type to represent differences between iterators
@ingroup container
*/
/// a type to represent differences between iterators
using
difference_type
=
std
::
ptrdiff_t
;
/*!
@brief a type to represent container sizes
@ingroup container
*/
/// a type to represent container sizes
using
size_type
=
std
::
size_t
;
/// the allocator type
...
...
@@ -130,30 +110,14 @@ class basic_json
/// the type of an element const pointer
using
const_pointer
=
typename
std
::
allocator_traits
<
allocator_type
>::
const_pointer
;
/*!
@brief an iterator for a basic_json container
@ingroup container
*/
using
iterator
=
basic_json
::
iterator
;
/*!
@brief a const iterator for a basic_json container
@ingroup container
*/
using
const_iterator
=
basic_json
::
const_iterator
;
/*!
@brief a reverse iterator for a basic_json container
@ingroup reversiblecontainer
*/
using
reverse_iterator
=
basic_json
::
reverse_iterator
;
/*!
@brief a const reverse iterator for a basic_json container
@ingroup reversiblecontainer
*/
using
const_reverse_iterator
=
basic_json
::
const_reverse_iterator
;
/// an iterator for a basic_json container
class
iterator
;
/// a const iterator for a basic_json container
class
const_iterator
;
/// a reverse iterator for a basic_json container
class
reverse_iterator
;
/// a const reverse iterator for a basic_json container
class
const_reverse_iterator
;
/// returns the allocator associated with the container
inline
static
allocator_type
get_allocator
()
...
...
src/json.hpp.re2c
View file @
e3ab0bc7
...
...
@@ -11,6 +11,7 @@
#define _NLOHMANN_JSON
#include <algorithm>
#include <ciso646>
#include <cmath>
#include <cstdio>
#include <functional>
...
...
@@ -86,40 +87,19 @@ class basic_json
// container types //
/////////////////////
// forward declarations
class iterator;
class const_iterator;
class reverse_iterator;
class const_reverse_iterator;
/*!
@brief the type of elements in a basic_json container
@ingroup container
*/
/// the type of elements in a basic_json container
using value_type = basic_json;
/*!
@brief the type of an element reference
@ingroup container
*/
/// the type of an element reference
using reference = value_type&;
/*!
@brief the type of an element const reference
@ingroup container
*/
/// the type of an element const reference
using const_reference = const value_type&;
/*!
@brief a type to represent differences between iterators
@ingroup container
*/
/// a type to represent differences between iterators
using difference_type = std::ptrdiff_t;
/*!
@brief a type to represent container sizes
@ingroup container
*/
/// a type to represent container sizes
using size_type = std::size_t;
/// the allocator type
...
...
@@ -130,30 +110,14 @@ class basic_json
/// the type of an element const pointer
using const_pointer = typename std::allocator_traits<allocator_type>::const_pointer;
/*!
@brief an iterator for a basic_json container
@ingroup container
*/
using iterator = basic_json::iterator;
/*!
@brief a const iterator for a basic_json container
@ingroup container
*/
using const_iterator = basic_json::const_iterator;
/*!
@brief a reverse iterator for a basic_json container
@ingroup reversiblecontainer
*/
using reverse_iterator = basic_json::reverse_iterator;
/*!
@brief a const reverse iterator for a basic_json container
@ingroup reversiblecontainer
*/
using const_reverse_iterator = basic_json::const_reverse_iterator;
/// an iterator for a basic_json container
class iterator;
/// a const iterator for a basic_json container
class const_iterator;
/// a reverse iterator for a basic_json container
class reverse_iterator;
/// a const reverse iterator for a basic_json container
class const_reverse_iterator;
/// returns the allocator associated with the container
inline static allocator_type get_allocator()
...
...
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