// SPDX-License-Identifier: BSD-2-Clause // author: Max Kellermann #pragma once #include /** * Generate a type based on #To with the same const-ness as #From. */ template using CopyConst = std::conditional_t, std::add_const_t, std::remove_const_t>;