// SPDX-FileCopyrightText: Copyright 2026 Mireille Meyer // SPDX-License-Identifier: 0BSD #pragma once #include #include namespace atom { namespace detail { template constexpr void static_for_impl( Func &&f, std::integer_sequence ) { ( f( std::integral_constant{ } ),... ); } } // namespace atom::detail template constexpr void static_for( Func &&f ) { detail::static_for_impl( std::forward(f), std::make_integer_sequence{ } ); } template struct is_one_of { static constexpr bool value = (... || std::is_same_v); }; template inline constexpr bool is_one_of_v = is_one_of::value; } // namespace atom