Sprout/sprout/generator/generate_functions_fwd.hpp
2019-01-07 17:47:17 +09:00

30 lines
1.2 KiB
C++

/*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
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)
=============================================================================*/
#ifndef SPROUT_GENERATOR_GENERATE_FUNCTIONS_FWD_HPP
#define SPROUT_GENERATOR_GENERATE_FUNCTIONS_FWD_HPP
#include <utility>
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/generator/traits_fwd.hpp>
namespace sprout {
namespace generators {
//
// next_value
//
template<typename T>
SPROUT_CONSTEXPR decltype(sprout::generators::generator_generate_traits<typename std::remove_reference<T>::type>::generate_next_value(std::declval<T>()))
next_value(T&& t)
SPROUT_NOEXCEPT_IF_EXPR(sprout::generators::generator_generate_traits<typename std::remove_reference<T>::type>::generate_next_value(std::declval<T>()));
} // namespace generators
using sprout::generators::next_value;
} // namespace sprout
#endif // #ifndef SPROUT_GENERATOR_GENERATE_FUNCTIONS_FWD_HPP