tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
implementation.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_VERSION_IMPLEMENTATION_HPP
4#define TETL_VERSION_IMPLEMENTATION_HPP
5
6namespace etl {
7
8enum struct implementation {
10 hosted = 1,
11};
12
13#if defined(__STDC_HOSTED__)
15#else
17#endif
18
19[[nodiscard]] consteval auto is_hosted() noexcept -> bool { return current_implementation == implementation::hosted; }
20
21[[nodiscard]] consteval auto is_freestanding() noexcept -> bool
22{
24}
25} // namespace etl
26
27#endif // TETL_VERSION_IMPLEMENTATION_HPP
Definition adjacent_find.hpp:8
consteval auto is_hosted() noexcept -> bool
Definition implementation.hpp:19
implementation
Definition implementation.hpp:8
@ hosted
Definition implementation.hpp:10
@ freestanding
Definition implementation.hpp:9
constexpr auto current_implementation
Definition implementation.hpp:16
consteval auto is_freestanding() noexcept -> bool
Definition implementation.hpp:21