2
0
mirror of https://github.com/boostorg/hana.git synced 2026-01-27 06:52:11 +00:00

[Tutorial] Add sections on amphibian algorithms and semantics

This commit is contained in:
Louis Dionne
2015-03-02 16:14:27 -05:00
parent da5c1a1ef1
commit fc12cee6e5
8 changed files with 641 additions and 184 deletions

View File

@@ -0,0 +1,24 @@
/*
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana.hpp>
#include <string>
using namespace boost::hana;
int main() {
//! [make<Tuple>]
auto xs = make<Tuple>(1, 2.2, 'a', std::string{"bcde"});
//! [make<Tuple>]
//! [make<Range>]
constexpr auto r = make<Range>(int_<3>, int_<10>);
static_assert(r == make_range(int_<3>, int_<10>), "");
//! [make<Range>]
}