Skip to content

File hashermget.h

File List > algebra > matrix3x3algebra > helpers > hashermget.h

Go to the documentation of this file

#ifndef COSMOINTERFACE_MATRIX3X3ALGEBRA_HELPERS_HASHERMGET_H
#define COSMOINTERFACE_MATRIX3X3ALGEBRA_HELPERS_HASHERMGET_H

/* This file is part of TempLat, available at https://cosmolattice.github.io/templat .
   Copyright 2021-2026 The TempLat authors, see AUTHORS.md.
   Released under the MIT license, see LICENSE.md. */

// File info: Main contributor(s): Jorge Baeza-Ballesteros, Year: 2026

#include "TempLat/util/rangeiteration/tag.h"

namespace TempLat
{

  template <class T>
  concept HasHermGet1 = requires(T t, Tag<0> tag) { t.HermGet(tag); };

  template <class T>
  concept HasHermGet2 = requires(T t, Tag<1> tag1, Tag<1> tag2) { t.HermGet(tag1, tag2); };

  template <class T>
  concept HasHermGet = HasHermGet1<T> || HasHermGet2<T>;
} // namespace TempLat

#endif