Automatic Differentiation
 
Loading...
Searching...
No Matches
is_integral.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_INTEGRAL_HPP
2#define STAN_MATH_PRIM_META_IS_INTEGRAL_HPP
3
4#include <type_traits>
5
6namespace stan {
7
13template <typename T>
14using is_integral = std::is_integral<std::decay_t<T>>;
15
16template <typename T>
18
19template <typename... Types>
20inline constexpr bool is_all_integral_v = (stan::is_integral_v<Types> && ...);
21
22template <typename... Types>
23inline constexpr bool is_any_integral_v = (stan::is_integral_v<Types> || ...);
24
25} // namespace stan
26
27#endif
std::is_integral< std::decay_t< T > > is_integral
Checks if decayed type is integral.
constexpr bool is_any_integral_v
constexpr bool is_all_integral_v
constexpr bool is_integral_v
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...