mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +00:00
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
|
/*=============================================================================
|
||
|
Copyright (c) 2011-2014 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_RESULTS_HPP
|
||
|
#define SPROUT_GENERATOR_RESULTS_HPP
|
||
|
|
||
|
#include <type_traits>
|
||
|
#include <utility>
|
||
|
#include <sprout/config.hpp>
|
||
|
#include <sprout/generator/generated_value.hpp>
|
||
|
#include <sprout/generator/next_generator.hpp>
|
||
|
|
||
|
namespace sprout {
|
||
|
namespace generators {
|
||
|
namespace results {
|
||
|
//
|
||
|
// generated_value
|
||
|
//
|
||
|
template<typename Generator>
|
||
|
struct generated_value
|
||
|
: public std::decay<decltype(sprout::generators::generated_value(std::declval<Generator>()()))>
|
||
|
{};
|
||
|
|
||
|
//
|
||
|
// next_generator
|
||
|
//
|
||
|
template<typename Generator>
|
||
|
struct next_generator
|
||
|
: public std::decay<decltype(sprout::generators::next_generator(std::declval<Generator>()()))>
|
||
|
{};
|
||
|
} // namespace results
|
||
|
} // namespace generators
|
||
|
|
||
|
namespace results {
|
||
|
using sprout::generators::generated_value;
|
||
|
using sprout::generators::next_generator;
|
||
|
} // namespace results
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_GENERATOR_RESULTS_HPP
|