1// Copyright Louis Dionne 2013-2022
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
4
5#include <boost/hana/experimental/view.hpp>
6
7#include <laws/base.hpp>
8#include <support/seq.hpp>
9namespace hana = boost::hana;
10using hana::test::ct_eq;
11
12
13struct undefined { };
14
15int main() {
16 // Make sure we do not evaluate the function unless required
17 auto storage = ::seq(ct_eq<0>{}, ct_eq<1>{}, ct_eq<2>{});
18 auto transformed = hana::experimental::transformed(storage, undefined{});
19 (void)transformed;
20}
21

source code of boost/libs/hana/test/experimental/view/transformed/laziness.cpp