mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix hash test
This commit is contained in:
parent
5df05cf750
commit
9140b68379
11 changed files with 157 additions and 48 deletions
|
@ -6,9 +6,9 @@
|
|||
#include <sprout/tuple/tuple/tuple.hpp>
|
||||
#include <sprout/tuple/tuple/comparison.hpp>
|
||||
#include <sprout/tuple/tuple/get.hpp>
|
||||
#include <sprout/tuple/tuple/hash.hpp>
|
||||
#include <sprout/tuple/tuple/ignore.hpp>
|
||||
#include <sprout/tuple/tuple/make_tuple.hpp>
|
||||
#include <sprout/tuple/tuple/type_traits.hpp>
|
||||
#include <sprout/tuple/tuple/hash.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_TUPLE_TUPLE_HPP
|
||||
|
|
|
@ -2,11 +2,13 @@
|
|||
#define SPROUT_VARIANT_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/variant/variant_fwd.hpp>
|
||||
#include <sprout/variant/variant.hpp>
|
||||
#include <sprout/variant/io.hpp>
|
||||
#include <sprout/variant/tuple.hpp>
|
||||
#include <sprout/variant/get.hpp>
|
||||
#include <sprout/variant/hash.hpp>
|
||||
#include <sprout/variant/type_traits.hpp>
|
||||
#include <sprout/variant/static_visitor.hpp>
|
||||
#include <sprout/variant/static_variant_visitor.hpp>
|
||||
#include <sprout/variant/as_visitor.hpp>
|
||||
|
|
30
sprout/variant/type_traits.hpp
Normal file
30
sprout/variant/type_traits.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#ifndef SPROUT_VARIANT_TYPE_TRAITS_HPP
|
||||
#define SPROUT_VARIANT_TYPE_TRAITS_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/variant/variant_fwd.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// is_variant
|
||||
//
|
||||
template<typename T>
|
||||
struct is_variant
|
||||
: public std::false_type
|
||||
{};
|
||||
template<typename T>
|
||||
struct is_variant<T const>
|
||||
: public sprout::is_variant<T>
|
||||
{};
|
||||
template<typename T>
|
||||
struct is_variant<T const volatile>
|
||||
: public sprout::is_variant<T>
|
||||
{};
|
||||
template<typename... Types>
|
||||
struct is_variant<sprout::variant<Types...> >
|
||||
: public std::true_type
|
||||
{};
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_VARIANT_TYPE_TRAITS_HPP
|
|
@ -16,12 +16,10 @@
|
|||
#include <sprout/type/algorithm/find_index.hpp>
|
||||
#include <sprout/functional/type_traits/has_type.hpp>
|
||||
#include <sprout/functional/type_traits/weak_result_type.hpp>
|
||||
#include <sprout/variant/variant_fwd.hpp>
|
||||
#include <sprout/variant/visitor_result.hpp>
|
||||
|
||||
namespace sprout {
|
||||
template<typename... Types>
|
||||
class variant;
|
||||
|
||||
namespace detail {
|
||||
template<typename... Types>
|
||||
class variant_impl {
|
||||
|
|
11
sprout/variant/variant_fwd.hpp
Normal file
11
sprout/variant/variant_fwd.hpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef SPROUT_VARIANT_VARIANT_FWD_HPP
|
||||
#define SPROUT_VARIANT_VARIANT_FWD_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
namespace sprout {
|
||||
template<typename... Types>
|
||||
class variant;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_VARIANT_VARIANT_FWD_HPP
|
Loading…
Add table
Add a link
Reference in a new issue