Skip to content
Snippets Groups Projects
Commit 1b0c8395 authored by Peter Bastian's avatar Peter Bastian
Browse files

Implemented P1OperatorLink via typedef from std:pair<int,int>

[[Imported from SVN: r4180]]
parent 7062fec5
Branches
Tags v2.4.0-rc1
No related merge requests found
......@@ -53,22 +53,8 @@ namespace Dune
*
*/
struct P1OperatorLink
{
int first,second;
P1OperatorLink (int a, int b) : first(a),second(b) {}
bool operator< (const P1OperatorLink& x) const
{
if (first<x.first) return true;
if (first==x.first && second<x.second) return true;
return false;
}
bool operator== (const P1OperatorLink& x) const
{
if (first==x.first && second==x.second) return true;
return false;
}
};
// make a type to sort matrix entries
typedef std::pair<int,int> P1OperatorLink;
// template meta program for inserting indices
template<int n, int c>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment