/* KWin - the KDE window manager This file is part of the KDE project. SPDX-FileCopyrightText: 2022 Xaver Hugl SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include namespace KWin { struct CDeleter { template void operator()(T *ptr) { if (ptr) { free(ptr); } } }; template using UniqueCPtr = std::unique_ptr; }