2020-01-18 08:38:21 +00:00
|
|
|
/*
|
2024-10-04 11:19:50 +00:00
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <andreas@ladybird.org>
|
2020-01-18 08:38:21 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 08:38:21 +00:00
|
|
|
*/
|
|
|
|
|
2019-01-30 17:26:19 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-11-26 11:18:30 +00:00
|
|
|
#include <AK/Platform.h>
|
|
|
|
|
2019-06-12 06:47:51 +00:00
|
|
|
namespace AK {
|
|
|
|
|
2019-01-30 17:26:19 +00:00
|
|
|
template<typename T>
|
|
|
|
class Badge {
|
2021-01-14 18:12:44 +00:00
|
|
|
public:
|
|
|
|
using Type = T;
|
|
|
|
|
|
|
|
private:
|
2019-01-30 17:26:19 +00:00
|
|
|
friend T;
|
2021-01-10 23:29:28 +00:00
|
|
|
constexpr Badge() = default;
|
2019-06-12 06:47:51 +00:00
|
|
|
|
2022-04-01 17:58:27 +00:00
|
|
|
Badge(Badge const&) = delete;
|
|
|
|
Badge& operator=(Badge const&) = delete;
|
2019-06-12 06:47:51 +00:00
|
|
|
|
|
|
|
Badge(Badge&&) = delete;
|
|
|
|
Badge& operator=(Badge&&) = delete;
|
2019-01-30 17:26:19 +00:00
|
|
|
};
|
2019-06-12 06:47:51 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-11-26 11:18:30 +00:00
|
|
|
#if USING_AK_GLOBALLY
|
2019-06-12 06:47:51 +00:00
|
|
|
using AK::Badge;
|
2022-11-26 11:18:30 +00:00
|
|
|
#endif
|