2020-01-18 08:38:21 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
Badge(const Badge&) = delete;
|
|
|
|
Badge& operator=(const Badge&) = delete;
|
|
|
|
|
|
|
|
Badge(Badge&&) = delete;
|
|
|
|
Badge& operator=(Badge&&) = delete;
|
2019-01-30 17:26:19 +00:00
|
|
|
};
|
2019-06-12 06:47:51 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
using AK::Badge;
|