Files
Cpp-in-Embedded-Systems/Chapter18/cib/libs/stdx/priority.hpp
Amar Mahmutbegovic 8634accda5 add Chapter18
2025-02-06 00:19:59 +01:00

13 lines
291 B
C++

#pragma once
#include <cstddef>
namespace stdx {
inline namespace v1 {
template <std::size_t N> struct priority_t : priority_t<N - 1> {};
template <> struct priority_t<0> {};
template <std::size_t N> constexpr inline auto priority = priority_t<N>{};
} // namespace v1
} // namespace stdx