]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/experimental/view/transformed/laziness.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / hana / test / experimental / view / transformed / laziness.cpp
1 // Copyright Louis Dionne 2013-2016
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>
9 namespace hana = boost::hana;
10 using hana::test::ct_eq;
11
12
13 struct undefined { };
14
15 int 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 }