$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Efficient tuple implementation
From: Peter Dimov (lists_at_[hidden])
Date: 2014-06-07 09:37:19
Louis Dionne wrote:
> Here's the idea:
>
>     auto list = [](auto ...xs) {
>         return [=](auto access) { return access(xs...); };
>     };
>
>     auto head = [](auto xs) {
>         return xs([](auto first, auto ...rest) { return first; });
>     };
That's very clever.
It's also a good example of how C++ continues to acquire expressive power 
and surprise us after 16 years of being an ISO standard.