From 1eac7e1e56d22cbfd12b48502772f9d2b656423a 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/ox/src/ox/std/pair.hpp | 19 +++++++++++++++++++ deps/ox/src/ox/std/std.hpp | 1 + 3 files changed, 21 insertions(+) create mode 100644 deps/ox/src/ox/std/pair.hpp diff --git a/deps/ox/src/ox/std/CMakeLists.txt b/deps/ox/src/ox/std/CMakeLists.txt index 32cdf7c1..0c1ad783 100644 --- a/deps/ox/src/ox/std/CMakeLists.txt +++ b/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/ox/src/ox/std/pair.hpp b/deps/ox/src/ox/std/pair.hpp new file mode 100644 index 00000000..d7424de6 --- /dev/null +++ b/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/ox/src/ox/std/std.hpp b/deps/ox/src/ox/std/std.hpp index a88416dd..85cbc879 100644 --- a/deps/ox/src/ox/std/std.hpp +++ b/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"