Maki
Loading...
Searching...
No Matches
init.hpp
1//Copyright Florian Goujeon 2021 - 2025.
2//Distributed under the Boost Software License, Version 1.0.
3//(See accompanying file LICENSE or copy at
4//https://www.boost.org/LICENSE_1_0.txt)
5//Official repository: https://github.com/fgoujeon/maki
6
7#ifndef MAKI_INIT_HPP
8#define MAKI_INIT_HPP
9
10#include <type_traits>
11
12namespace maki
13{
14
15#ifdef MAKI_DETAIL_DOXYGEN
19using init_t = IMPLEMENTATION_DETAIL;
20#else
21struct init_t{};
22#endif
23
28inline constexpr auto init = init_t{};
29
30namespace detail
31{
32 template<class T>
33 constexpr bool is_init_v = std::is_same_v<T, init_t>;
34}
35
36} //namespace
37
38#endif
The Maki library.
IMPLEMENTATION_DETAIL init_t
The type of maki::init
Definition init.hpp:19