1
0
Fork 0
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:
bolero-MURAKAMI 2012-07-15 16:04:05 +09:00
parent e4a4d17207
commit f9d4b475b4
69 changed files with 420 additions and 378 deletions

View file

@ -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

View 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