6#include <userver/utils/assert.hpp>
10namespace utils::impl {
12extern std::atomic<
bool> is_static_registration_finished;
14void AssertStaticRegistrationAllowed(std::string_view operation_name);
17inline void AssertStaticRegistrationFinished()
noexcept {
19 "This operation is only allowed after static initialization "
20 "completes, see stacktrace");
26void FinishStaticRegistration()
noexcept;