aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.generator/nihil.generator.ccm
blob: 550a4c7588ef1c8dc574a7b93f41c2ee35995d17 (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
///////////////////////////////////////////////////////////////////////////////
// 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 :coroutine_traits;
export import :elements_of;
export import :generator;

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