Skip to content

Commit f03c9da

Browse files
committed
add stan::
1 parent 4746be5 commit f03c9da

5 files changed

Lines changed: 14 additions & 13 deletions

File tree

stan/math/prim/meta/is_floating_point.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ template <typename T>
1414
using is_floating_point = std::is_floating_point<std::decay_t<T>>;
1515

1616
template <typename T>
17-
inline constexpr bool is_floating_point_v = is_floating_point<T>::value;
17+
inline constexpr bool is_floating_point_v = stan::is_floating_point<T>::value;
1818

1919
template <typename... Types>
2020
inline constexpr bool is_all_floating_point_v
21-
= (is_floating_point_v<Types> && ...);
21+
= (stan::is_floating_point_v<Types> && ...);
2222

2323
template <typename... Types>
2424
inline constexpr bool is_any_floating_point_v
25-
= (is_floating_point_v<Types> || ...);
25+
= (stan::is_floating_point_v<Types> || ...);
2626

2727
} // namespace stan
2828

stan/math/prim/meta/is_integral.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ template <typename T>
1414
using is_integral = std::is_integral<std::decay_t<T>>;
1515

1616
template <typename T>
17-
inline constexpr bool is_integral_v = is_integral<T>::value;
17+
inline constexpr bool is_integral_v = stan::is_integral<T>::value;
1818

1919
template <typename... Types>
20-
inline constexpr bool is_all_integral_v = (is_integral_v<Types> && ...);
20+
inline constexpr bool is_all_integral_v = (stan::is_integral_v<Types> && ...);
2121

2222
template <typename... Types>
23-
inline constexpr bool is_any_integral_v = (is_integral_v<Types> || ...);
23+
inline constexpr bool is_any_integral_v = (stan::is_integral_v<Types> || ...);
2424

2525
} // namespace stan
2626

stan/math/prim/meta/is_tuple.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ template <typename T, std::size_t N, typename = void>
6666
struct is_tuple_of_size : std::false_type {};
6767

6868
template <typename T, std::size_t N>
69-
struct is_tuple_of_size<T, N, std::enable_if_t<is_tuple_v<T>>>
69+
struct is_tuple_of_size<T, N, std::enable_if_t<stan::is_tuple_v<T>>>
7070
: std::bool_constant<std::tuple_size_v<std::decay_t<T>> == N> {};
7171

7272
template <typename T, std::size_t N>
73-
inline constexpr bool is_tuple_of_size_v = is_tuple_of_size<T, N>::value;
73+
inline constexpr bool is_tuple_of_size_v = stan::is_tuple_of_size<T, N>::value;
7474

7575
} // namespace stan
7676

stan/math/prim/meta/tuple_element.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ struct tuple_element {
2323
};
2424

2525
template <std::size_t N, typename T>
26-
struct tuple_element<N, T,
27-
std::enable_if_t<is_tuple_v<T> && (N < tuple_size_v<T>)>> {
26+
struct tuple_element<
27+
N, T,
28+
std::enable_if_t<stan::is_tuple_v<T> && (N < stan::tuple_size_v<T>)>> {
2829
using type = std::tuple_element_t<N, std::decay_t<T>>;
2930
};
3031

3132
template <std::size_t N, typename T>
32-
using tuple_element_t = typename tuple_element<N, T>::type;
33+
using tuple_element_t = typename stan::tuple_element<N, T>::type;
3334
} // namespace stan
3435

3536
#endif

stan/math/prim/meta/tuple_size.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ template <typename T, typename = void>
1717
struct tuple_size : std::integral_constant<std::size_t, 0> {};
1818

1919
template <typename T>
20-
struct tuple_size<T, std::enable_if_t<is_tuple_v<T>>>
20+
struct tuple_size<T, std::enable_if_t<stan::is_tuple_v<T>>>
2121
: std::integral_constant<std::size_t, std::tuple_size_v<std::decay_t<T>>> {
2222
};
2323

2424
template <typename T>
25-
constexpr std::size_t tuple_size_v = tuple_size<T>::value;
25+
constexpr std::size_t tuple_size_v = stan::tuple_size<T>::value;
2626
} // namespace stan
2727

2828
#endif

0 commit comments

Comments
 (0)