cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
is_same.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_BASIC_FUNCTIONS_IS_SAME_H
4#define pRC_CORE_BASIC_FUNCTIONS_IS_SAME_H
5
6namespace pRC
7{
8 template<class X, class... Xs>
9 static inline constexpr auto isSame(X &&arg, Xs &&...args)
10 {
11 return ((arg == args) && ...);
12 }
13}
14#endif // pRC_CORE_BASIC_FUNCTIONS_IS_SAME_H
Definition cholesky.hpp:10
static constexpr auto isSame(X &&arg, Xs &&...args)
Definition is_same.hpp:9
static constexpr auto arg(T const &a)
Definition arg.hpp:11