/*============================================================================= 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_ACCESS_FUNCTIONS_FWD_HPP #define SPROUT_GENERATOR_ACCESS_FUNCTIONS_FWD_HPP #include #include #include #include namespace sprout { namespace generators { // // generated_value // template SPROUT_CONSTEXPR decltype(sprout::generators::generator_access_traits::type>::get_generated_value(std::declval())) generated_value(T&& t) SPROUT_NOEXCEPT_IF_EXPR(sprout::generators::generator_access_traits::type>::get_generated_value(std::declval())); // // next_generator // template SPROUT_CONSTEXPR decltype(sprout::generators::generator_access_traits::type>::get_next_generator(std::declval())) next_generator(T&& t) SPROUT_NOEXCEPT_IF_EXPR(sprout::generators::generator_access_traits::type>::get_next_generator(std::declval())); } // namespace generators using sprout::generators::generated_value; using sprout::generators::next_generator; } // namespace sprout #endif // #ifndef SPROUT_GENERATOR_ACCESS_FUNCTIONS_FWD_HPP