2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2019-01-07 08:47:17 +00:00
|
|
|
Copyright (c) 2011-2019 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
=============================================================================*/
|
2012-12-19 15:09:05 +00:00
|
|
|
#ifndef SPROUT_VARIANT_STATIC_VARIANT_VISITOR_HPP
|
|
|
|
#define SPROUT_VARIANT_STATIC_VARIANT_VISITOR_HPP
|
|
|
|
|
|
|
|
#include <type_traits>
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/variant/variant.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// static_variant_visitor
|
|
|
|
//
|
|
|
|
class static_variant_visitor {
|
|
|
|
public:
|
|
|
|
template<typename... Types>
|
|
|
|
struct visitor_result {
|
|
|
|
public:
|
|
|
|
typedef sprout::variant<typename std::decay<Types>::type...> type;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_VARIANT_STATIC_VARIANT_VISITOR_HPP
|