1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-12-03 21:15:42 +00:00
Sprout/sprout/generator/generate_functions_fwd.hpp

31 lines
1.2 KiB
C++
Raw Normal View History

2016-04-27 23:42:13 +00:00
/*=============================================================================
Copyright (c) 2011-2017 Bolero MURAKAMI
2016-04-27 23:42:13 +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)
=============================================================================*/
#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