--- src/geo/Pair.h.orig 2024-03-29 22:07:01 UTC +++ src/geo/Pair.h @@ -1,26 +0,0 @@ -// Gmsh - Copyright (C) 1997-2024 C. Geuzaine, J.-F. Remacle -// -// See the LICENSE.txt file in the Gmsh root directory for license information. -// Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues. - -#ifndef PAIR_H -#define PAIR_H - -// A pair of values, the types of which can be different -template class Pair { -private: - L Left; - R Right; - -public: - Pair() {} - Pair(const L &left, const R &right) : Left(left), Right(right) {} - L left() const { return Left; } - void left(const L &left) { Left = left; } - R right() const { return Right; } - void right(const R &right) { Right = right; } - L first() const { return Left; } - R second() const { return Right; } -}; - -#endif