Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
93cf3128
Commit
93cf3128
authored
Dec 11, 2012
by
laurence
Browse files
ENH: Pair: Add operator<()
parent
26a9fbb6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/Pair/Pair.H
View file @
93cf3128
...
...
@@ -167,6 +167,19 @@ public:
{
return
!
(
a
==
b
);
}
friend
bool
operator
<
(
const
Pair
<
Type
>&
a
,
const
Pair
<
Type
>&
b
)
{
return
(
a
.
first
()
<
b
.
first
()
||
(
!
(
b
.
first
()
<
a
.
first
())
&&
a
.
second
()
<
b
.
second
()
)
);
}
};
...
...
Write
Preview
Supports
Markdown
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