File shiftedindexsequence.h
File List > code_source > templat > include > TempLat > util > shiftedindexsequence.h
Go to the documentation of this file
#ifndef TEMPLAT_UTIL_SHIFTEDINDEXSEQUENCE_H
#define TEMPLAT_UTIL_SHIFTEDINDEXSEQUENCE_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, Year: 2019
#include <cstddef>
#include <utility>
namespace TempLat
{
template <int SHIFT, size_t... I> auto shifted_index_sequence(std::index_sequence<I...>)
{
return std::index_sequence<(I + SHIFT)...>{};
}
} // namespace TempLat
#endif