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
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace sprout {
|
||||
template<typename Container>
|
||||
SPROUT_CONSTEXPR std::size_t hash_value(sprout::pit<Container> const& v) {
|
||||
inline SPROUT_CONSTEXPR std::size_t hash_value(sprout::pit<Container> const& v) {
|
||||
return sprout::to_hash(v.elem);
|
||||
}
|
||||
} // namespace sprout
|
||||
|
|
30
sprout/pit/type_traits.hpp
Normal file
30
sprout/pit/type_traits.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#ifndef SPROUT_PIT_TYPE_TRAITS_HPP
|
||||
#define SPROUT_PIT_TYPE_TRAITS_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/pit/pit.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// is_pit
|
||||
//
|
||||
template<typename T>
|
||||
struct is_pit
|
||||
: public std::false_type
|
||||
{};
|
||||
template<typename T>
|
||||
struct is_pit<T const>
|
||||
: public sprout::is_pit<T>
|
||||
{};
|
||||
template<typename T>
|
||||
struct is_pit<T const volatile>
|
||||
: public sprout::is_pit<T>
|
||||
{};
|
||||
template<typename Container>
|
||||
struct is_pit<sprout::pit<Container> >
|
||||
: public std::true_type
|
||||
{};
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_PIT_TYPE_TRAITS_HPP
|
Loading…
Add table
Add a link
Reference in a new issue