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
830c93fd
Unverified
Commit
830c93fd
authored
Mar 29, 2018
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
fixed example for operator> #1029
parent
d2dd27dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
doc/examples/operator__greater.cpp
doc/examples/operator__greater.cpp
+4
-4
doc/examples/operator__greater.link
doc/examples/operator__greater.link
+1
-1
doc/examples/operator__greater.output
doc/examples/operator__greater.output
+4
-4
No files found.
doc/examples/operator__greater.cpp
View file @
830c93fd
...
@@ -17,8 +17,8 @@ int main()
...
@@ -17,8 +17,8 @@ int main()
// output values and comparisons
// output values and comparisons
std
::
cout
<<
std
::
boolalpha
;
std
::
cout
<<
std
::
boolalpha
;
std
::
cout
<<
array_1
<<
"
==
"
<<
array_2
<<
" "
<<
(
array_1
>
array_2
)
<<
'\n'
;
std
::
cout
<<
array_1
<<
"
>
"
<<
array_2
<<
" "
<<
(
array_1
>
array_2
)
<<
'\n'
;
std
::
cout
<<
object_1
<<
"
==
"
<<
object_2
<<
" "
<<
(
object_1
>
object_2
)
<<
'\n'
;
std
::
cout
<<
object_1
<<
"
>
"
<<
object_2
<<
" "
<<
(
object_1
>
object_2
)
<<
'\n'
;
std
::
cout
<<
number_1
<<
"
==
"
<<
number_2
<<
" "
<<
(
number_1
>
number_2
)
<<
'\n'
;
std
::
cout
<<
number_1
<<
"
>
"
<<
number_2
<<
" "
<<
(
number_1
>
number_2
)
<<
'\n'
;
std
::
cout
<<
string_1
<<
"
==
"
<<
string_2
<<
" "
<<
(
string_1
>
string_2
)
<<
'\n'
;
std
::
cout
<<
string_1
<<
"
>
"
<<
string_2
<<
" "
<<
(
string_1
>
string_2
)
<<
'\n'
;
}
}
doc/examples/operator__greater.link
View file @
830c93fd
<a target="_blank" href="https://wandbox.org/permlink/yiz7oCHVpFHSALB1"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/ntF7DMzC85gbQKHu"><b>online</b></a>
\ No newline at end of file
\ No newline at end of file
doc/examples/operator__greater.output
View file @
830c93fd
[1,2,3]
==
[1,2,4] false
[1,2,3]
>
[1,2,4] false
{"A":"a","B":"b"}
==
{"A":"a","B":"b"} false
{"A":"a","B":"b"}
>
{"A":"a","B":"b"} false
17
==
17.0000000000001 false
17
>
17.0000000000001 false
"foo"
==
"bar" true
"foo"
>
"bar" true
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