blob: ac9076bae3b9a5182c35c13bf68c3b15fe2d66bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
///////////////////////////////////////////////////////////////////////////////
// Reference implementation of std::generator proposal P2168.
//
// See https://wg21.link/P2168 for details.
//
///////////////////////////////////////////////////////////////////////////////
// Copyright Lewis Baker, Corentin Jabot
//
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0.
// (See accompanying file LICENSE or http://www.boost.org/LICENSE_1_0.txt)
///////////////////////////////////////////////////////////////////////////////
module;
#include <ranges>
export module nihil.generator;
export import :byte_allocator;
export import :coroutine_traits;
export import :elements_of;
export import :forward;
export import :generator;
export import :generator_promise_base;
export import :manual_lifetime;
export import :promise_base_alloc;
export import :util;
export namespace std::ranges { // NOLINT
template <typename T, typename U, typename Alloc>
constexpr inline bool enable_view<nihil::generator<T, U, Alloc>> = true;
} // namespace std::ranges
|