Skip to content

File hasderivmethod.h

File List > algebra > helpers > hasderivmethod.h

Go to the documentation of this file

#ifndef TEMPLAT_LATTICE_ALGEBRA_HELPERS_HASDERIVMETHOD_H
#define TEMPLAT_LATTICE_ALGEBRA_HELPERS_HASDERIVMETHOD_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): Adrien Florio, originally by Wessel Valkenburg, Year: 2019

#include <type_traits>
#include <cstddef>

namespace TempLat
{
  template <class T>
  concept HasDerivMethod = requires(std::decay_t<T> t, int idx) { t.d(idx); };

} // namespace TempLat

#endif