1
  X   ˆl—äY>”*h¥2 Y¸ÛweLZ7ÿ’þe•fåãî‰ÖÈ¦öjÿŸÄ{‹„„-i[D<†ªoZƒ›Ù«Å196_‹I|¥Žƒî4ÃVŸÄÃ  Ä    ‹      u�Á‚0†ï{Š&š€	lOb|
^�£À"ÐÙ51¼»L½ziÒ¿ßÿ·½[†5€ñ6yÆ<ÓÚøQ�GÛGƒÏ@,Ùf¯î×0QG}�N<�eâ’GçÚëE'ñJGut"!VÆˆÛîtë¥›.Ú“	L�¢íËˆ2ØPR“ŒfÑ•�%*þ¢Ô:�XnQ*È~K²¢ØEž°€†Øaýí`.à¥àóCõ©j^N|Øt:8ÿ        ˆÀ¿Æ541_‘I|¥‰ÓMdœv ©ƒ†ü+=ÅÄ     ‹      ½”ÑnÓ0†ï÷ÆÜ%§i³MtN`4“¨èÚª+B!ä$NâÕµ#Û¥Œ§ÇiŠ–¡–�€Ý$±ý'çûlÇäY2-?Ì¯Ð›åõÍß½žŒG{ ï#€d™´¡ß ®¦áÊÚz°ÝnýíÀWº„å*»!«yfýÜæ8>!M_|‚HÅhîîˆXn‹Ç2g_‘*¨�5<g!ÔZe`+í‚ža¢ ­”…�Ñ`*ªH•³Ïk•o3ð*¥)P‹MÉ¥ç^­•¡Â»5Jz€,�¶”+ûê$Uù]<€«³S¦éŽ£yÔ1±úB/e„­ªqLøºDFgž)i T®ü’Qa#üq<š}r9×¼Šeá—£hz1‹.q<¥kF€Î\·™	59~^p–ß´áþíø—Ipœ0“i^[®ä}œbW5SÂÔÔ¹ž:ƒJwSm$l6hö`2æ—‹«é2/Ú)É›OÜÓýÝrâxî†¤E	×,³JßíÅÚ*Ïejê‹M´ÇÖ¼¬,ŽòÐÁä¸JäLwm�y
ž:ÚæÚ%ü	©ßë‡^ïÜëõQOýGö�\Iµ•]x·Â×nIiÉüæoÁq·õ¨Ì™œ¡^0Ï�Ê~ÿíSÊ¬Ê[ã	åvéÞçaÇ¿Pz1èÿb}~óoƒý9D`whÏæïßpìâþ        	ˆÃ‘äÇò 8à$lnVœ+_ÏÈƒh¹ÇÅÄ      	unsupported
     ˆÁÀÇ541¾ÅÄ     ‹      ½”Ñ�Ò0Çßï¯¨}ðmû1GÂ�éÉH$r@8Œ1Æ‡ní¶Bi—¶ˆø×Û1Ìq<5z/ÛÚ}ÛßçÓn�^$³áòã|„Þ.ï&hþþÍd<DØøÐ$Ë¤yú­ `4Å—ÖV}€Ýnçï:¾Ò,PÚ�ÁXÍ3ëSKq|Õ}ñŠJF¨»£Èr+X<–”}E*G ¶ÖpÊB¨´ÊÀ–Ú=ÃDZ)[£Á”D3�Š²•�×)I™€Jl.=«‰4¹ÒÏ�Ë¬G¹©Ù{’lXM-WŽå£TÑ}M<�+t�&é¤~ÔqdKô…^È¶ªÂqÄ72:`à™’RAäÚ/xŽv€?�‡³Ï.çèêÑqD�ÃÌøÕp0½™nq<=Ô#ç3wMfBŒEEyÎ½¾oÂ÷üÛå	—Ipœ0“i^Y®äCœâ©j¦„©ˆsí:ƒRŸ¦š}j5Höh1æ·‹Ñt™ŒÍ’ÐzŠº¿ÝOÏ]§´(ášeVéýQ©™ÿ¥LMuó£‰ŽÀš¥Å1B:›üË\	Êô©ç%CÁSG[_O	Bj·Ú¡×êy­6
Â~·ƒÐdßÊµT;y
ï>€³ð•ÛLR0e”ÄñiëI™k/¸F­ ö.Ê~ðî9eÖÅÊxB¹ïóèó¸ã_(õºá/öç7ÿ38ž@NÀšsù;`¸öðú    B   ˆl–Ãa¾”êh¥2 ¸&®6â˜´o�þBËÏ,Ü¤’¸Æ ùÉƒl È_‹I|¥�+ýÿ¹ä³ÇÆ ˆ    /*=============================================================================
    Copyright (c) 2015 Paul Fultz II
    fold.h
    Distributed under the Boost Software License, Version 1.0. (See accompanying
    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/

#ifndef BOOST_HOF_GUARD_FOLD_H
#define BOOST_HOF_GUARD_FOLD_H

/// fold
/// ========
/// 
/// Description
/// -----------
/// 
/// The `fold` function adaptor uses a binary function to apply a
/// [fold](https://en.wikipedia.org/wiki/Fold_%28higher-order_function%29)
/// operation to the arguments passed to the function. Additionally, an
/// optional initial state can be provided, otherwise the first argument is
/// used as the initial state.
/// 
/// The arguments to the binary function, take first the state and then the
/// argument.
/// 
/// Synopsis
/// --------
/// 
///     template<class F, class State>
///     constexpr fold_adaptor<F, State> fold(F f, State s);
/// 
///     template<class F>
///     constexpr fold_adaptor<F> fold(F f);
/// 
/// Semantics
/// ---------
/// 
///     assert(fold(f, z)() == z);
///     assert(fold(f, z)(x, xs...) == fold(f, f(z, x))(xs...));
///     assert(fold(f)(x) == x);
///     assert(fold(f)(x, y, xs...) == fold(f)(f(x, y), xs...));
/// 
/// Requirements
/// ------------
/// 
/// State must be:
/// 
/// * CopyConstructible
/// 
/// F must be:
/// 
/// * [BinaryInvocable](BinaryInvocable)
/// * MoveConstructible
/// 
/// Example
/// -------
/// 
///     #include <boost/hof.hpp>
///     #include <cassert>
/// 
///     struct max_f
///     {
///         template<class T, class U>
///         constexpr T operator()(T x, U y) const
///         {
///             return x > y ? x : y;
///         }
///     };
///     int main() {
///         assert(boost::hof::fold(max_f())(2, 3, 4, 5) == 5);
///     }
/// 
/// References
/// ----------
/// 
/// * [Fold](https://en.wikipedia.org/wiki/Fold_(higher-order_function))
/// * [Variadic sum](<Variadic sum>)
/// 

#include <boost/hof/detail/callable_base.hpp>
#include <boost/hof/detail/delegate.hpp>
#include <boost/hof/detail/compressed_pair.hpp>
#include <boost/hof/detail/move.hpp>
#include <boost/hof/detail/make.hpp>
#include <boost/hof/detail/static_const_var.hpp>

namespace boost { namespace hof { namespace detail {

struct v_fold
{
    BOOST_HOF_RETURNS_CLASS(v_fold);
    template<class F, class State