Skip to content

File hasvectorgetmethod.h

File List > algebra > helpers > hasvectorgetmethod.h

Go to the documentation of this file

#ifndef TEMPLAT_LATTICE_ALGEBRA_HELPERS_HASGETVECTORMETHOD_H
#define TEMPLAT_LATTICE_ALGEBRA_HELPERS_HASGETVECTORMETHOD_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: 2025

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

namespace TempLat
{
  template <class U>
  concept HasVectorGetMethod = requires(std::decay_t<U> u) { u.vectorGet(Tag<1>()); };
} // namespace TempLat

#endif