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