aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.generator/nihil.generator.ccm
blob: 9eec5b493b50874cf76ba44f12aa7e2d39ff51b7 (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
///////////////////////////////////////////////////////////////////////////////
// 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 :elements_of;
export import :generator;
export import :manual_lifetime;
export import :promise_base_alloc;
export import :util;

export namespace std::ranges {

template <typename T, typename U, typename Alloc>
constexpr inline bool enable_view<nihil::generator<T, U, Alloc>> = true;

} // namespace std::ranges