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