From 46578616078b141f858c54b138810e00e6eff351 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 12 Jun 2024 22:51:57 -0500 Subject: [PATCH] [ox/std] Add Pair --- .../deps/ox/src/ox/std/CMakeLists.txt | 1 + deps/nostalgia/deps/ox/src/ox/std/pair.hpp | 19 +++++++++++++++++++ deps/nostalgia/deps/ox/src/ox/std/std.hpp | 1 + 3 files changed, 21 insertions(+) create mode 100644 deps/nostalgia/deps/ox/src/ox/std/pair.hpp diff --git a/deps/nostalgia/deps/ox/src/ox/std/CMakeLists.txt b/deps/nostalgia/deps/ox/src/ox/std/CMakeLists.txt index 32cdf7c..0c1ad78 100644 --- a/deps/nostalgia/deps/ox/src/ox/std/CMakeLists.txt +++ b/deps/nostalgia/deps/ox/src/ox/std/CMakeLists.txt @@ -113,6 +113,7 @@ install( memory.hpp new.hpp optional.hpp + pair.hpp point.hpp random.hpp ranges.hpp diff --git a/deps/nostalgia/deps/ox/src/ox/std/pair.hpp b/deps/nostalgia/deps/ox/src/ox/std/pair.hpp new file mode 100644 index 0000000..d7424de --- /dev/null +++ b/deps/nostalgia/deps/ox/src/ox/std/pair.hpp @@ -0,0 +1,19 @@ +/* + * Copyright 2015 - 2024 gary@drinkingtea.net + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +#pragma once + +namespace ox { + +template +struct Pair { + T a{}; + U b{}; +}; + +} \ No newline at end of file diff --git a/deps/nostalgia/deps/ox/src/ox/std/std.hpp b/deps/nostalgia/deps/ox/src/ox/std/std.hpp index a88416d..85cbc87 100644 --- a/deps/nostalgia/deps/ox/src/ox/std/std.hpp +++ b/deps/nostalgia/deps/ox/src/ox/std/std.hpp @@ -35,6 +35,7 @@ #include "memory.hpp" #include "new.hpp" #include "optional.hpp" +#include "pair.hpp" #include "point.hpp" #include "random.hpp" #include "realstd.hpp"