Commit 153bf460 authored by Xavier Thompson's avatar Xavier Thompson

Add fundamental/

parent a3e8042a
#ifndef TYPON_META_HPP_INCLUDED
#define TYPON_META_HPP_INCLUDED
namespace typon::fdt::meta
{
template <template <typename ...> typename T>
struct lazy
{
template <typename... Args>
using type = T<Args...>;
};
}
#endif // TYPON_META_HPP_INCLUDED
#ifndef TYPON_FUNDAMENTAL_SCOPE_HPP_INCLUDED
#define TYPON_FUNDAMENTAL_SCOPE_HPP_INCLUDED
#include <concepts>
namespace typon::fdt
{
template <std::invocable<> F>
struct defer
{
F _f;
~defer()
{
_f();
}
};
template <std::invocable<> F>
defer(F) -> defer<F>;
}
#endif // TYPON_FUNDAMENTAL_SCOPE_HPP_INCLUDED
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment