ladybird/AK/Badge.h

32 lines
438 B
C
Raw Normal View History

/*
* Copyright (c) 2018-2020, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
2024-11-15 17:55:59 -05:00
#include <AK/Noncopyable.h>
#include <AK/Platform.h>
namespace AK {
template<typename T>
class Badge {
2024-11-15 17:55:59 -05:00
AK_MAKE_NONCOPYABLE(Badge);
AK_MAKE_NONMOVABLE(Badge);
public:
using Type = T;
private:
friend T;
constexpr Badge() = default;
};
}
#if USING_AK_GLOBALLY
using AK::Badge;
#endif