File static_max.h
File List > code_source > templat > include > TempLat > util > static_max.h
Go to the documentation of this file
#ifndef TEMPLAT_UTIL_STATIC_MAX_H
#define TEMPLAT_UTIL_STATIC_MAX_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>
namespace TempLat
{
template <size_t N, size_t M> struct static_max {
static const size_t value = N < M ? M : N;
};
} // namespace TempLat
#endif