Skip to content

File hasdx.h

File List > algebra > helpers > hasdx.h

Go to the documentation of this file

#ifndef TEMPLAT_LATTICE_ALGEBRA_HELPERS_HASDX_H
#define TEMPLAT_LATTICE_ALGEBRA_HELPERS_HASDX_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, Franz R. Sattler, Year: 2026

#include "TempLat/parallel/device.h"

namespace TempLat
{
  template <class T>
  concept HasDx = requires(std::decay_t<T> t) {
    { t.getDx() } -> std::convertible_to<double>;
  };

} // namespace TempLat

#endif