#pragma once #include namespace beast { /** Makes T const or non const depending on a bool. */ template struct maybe_const { explicit maybe_const() = default; using type = std:: conditional_t::type const, std::remove_const_t>; }; /** Alias for omitting `typename`. */ template using maybe_const_t = typename maybe_const::type; } // namespace beast