Maki
Loading...
Searching...
No Matches
final.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_FINAL_HPP
8
#define MAKI_FINAL_HPP
9
10
#include <type_traits>
11
12
namespace
maki
13
{
14
15
#ifdef MAKI_DETAIL_DOXYGEN
19
using
final_t
= IMPLEMENTATION_DETAIL;
20
#else
21
struct
final_t
{};
22
#endif
23
29
inline
constexpr
auto
final
=
final_t
{};
30
31
namespace
detail
32
{
33
template
<
class
T>
34
constexpr
bool
is_final_v = std::is_same_v<T, final_t>;
35
}
36
37
}
//namespace
38
39
#endif
maki
The Maki library.
maki::final_t
IMPLEMENTATION_DETAIL final_t
The type of maki::final
Definition
final.hpp:19
maki
final.hpp
Generated by
1.13.2