Debian Codegraph @

Source/Core/Common/Projection.h

raw symbols SCIP
1 // Copyright 2025 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #include <utility>
5
6 namespace Common::Projection
7 {
8 struct First
9 {
10 // TODO C++23: static operator()
11 template <class T>
12 [[nodiscard]] constexpr auto&& operator()(T&& t) const noexcept
13 {
14 return std::forward<T>(t).first;
15 }
16 };
17
18 struct Second
19 {
20 // TODO C++23: static operator()
21 template <class T>
22 [[nodiscard]] constexpr auto&& operator()(T&& t) const noexcept
23 {
24 return std::forward<T>(t).second;
25 }
26 };
27
28 using Key = First;
29 using Value = Second;
30 } // namespace Common::Projection