FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
co-cpp19/src/array19.lib/array19/AllocatedArrayOf.equals.h at develop · basicpp/co-cpp19 · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
basicpp
/
co-cpp19
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
14
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
co-cpp19
/
src
/
array19.lib
/
array19
/
AllocatedArrayOf.equals.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (15 loc) · 508 Bytes
Breadcrumbs
co-cpp19
/
src
/
array19.lib
/
array19
/
AllocatedArrayOf.equals.h
Copy path
File metadata and controls
19 lines (15 loc) · 508 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
pragma
once
#
include
"
AllocatedArrayOf.h
"
#
include
"
Zip.h
"
namespace
array19
{
template
<
class
T
>
bool
operator
==(
const
AllocatedArrayOf<T>& a,
const
AllocatedArrayOf<T>& b)
noexcept
{
if
(a.
count
() != b.
count
())
return
false
;
for
(
auto
[av, bv] :
Zip
(a, b)) {
if
(!(av == bv))
return
false
;
}
return
true
;
}
template
<
class
T
>
bool
operator
!=(
const
AllocatedArrayOf<T>& a,
const
AllocatedArrayOf<T>& b)
noexcept
{
return
!(a == b);
}
}
//
namespace array19
Back
|
FazBrowse Home
|
New Git URL