mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add sprout/numeric/dft.wave.hpp
fix constexpr -> inline constexpr
This commit is contained in:
parent
e4a4d17207
commit
f9d4b475b4
69 changed files with 420 additions and 378 deletions
|
@ -11,22 +11,22 @@ namespace sprout {
|
|||
// get
|
||||
//
|
||||
template<typename U, typename... Types>
|
||||
SPROUT_CONSTEXPR U const& get(sprout::variant<Types...> const& operand) {
|
||||
inline SPROUT_CONSTEXPR U const& get(sprout::variant<Types...> const& operand) {
|
||||
return operand.template get<U>();
|
||||
}
|
||||
template<typename U, typename... Types>
|
||||
U& get(sprout::variant<Types...>& operand) {
|
||||
inline SPROUT_CONSTEXPR U& get(sprout::variant<Types...>& operand) {
|
||||
return operand.template get<U>();
|
||||
}
|
||||
template<std::size_t I, typename... Types>
|
||||
SPROUT_CONSTEXPR typename sprout::tuples::tuple_element<
|
||||
inline SPROUT_CONSTEXPR typename sprout::tuples::tuple_element<
|
||||
I,
|
||||
sprout::variant<Types...>
|
||||
>::type const& get(sprout::variant<Types...> const& operand) {
|
||||
return operand.template get_at<I>();
|
||||
}
|
||||
template<std::size_t I, typename... Types>
|
||||
typename sprout::tuples::tuple_element<
|
||||
inline SPROUT_CONSTEXPR typename sprout::tuples::tuple_element<
|
||||
I,
|
||||
sprout::variant<Types...>
|
||||
>::type& get(sprout::variant<Types...>& operand) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue