//          Copyright Carl Philipp Reh 2009 - 2021.
// 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 FCPPT_MONAD_CONSTRUCTOR_HPP_INCLUDED
#define FCPPT_MONAD_CONSTRUCTOR_HPP_INCLUDED

#include <fcppt/monad/instance_fwd.hpp>

namespace fcppt::monad
{
/**
\brief Applies the constructor of a monad.

\ingroup fcpptmonad

Applies the constructor \a Type to \a Value.

For example, if <code>Type=optional</code> and <code>Value=int</code> then the
result is <code>optional<int></code>.
*/
template <typename Type, typename Value>
using constructor = fcppt::monad::instance<Type>::template constructor<Value>::type;

}

#endif
