[ox/std] Add Pair

This commit is contained in:
Gary Talent 2024-06-12 22:51:57 -05:00
parent 8798d2d718
commit 1eac7e1e56
3 changed files with 21 additions and 0 deletions

View File

@ -113,6 +113,7 @@ install(
memory.hpp memory.hpp
new.hpp new.hpp
optional.hpp optional.hpp
pair.hpp
point.hpp point.hpp
random.hpp random.hpp
ranges.hpp ranges.hpp

19
deps/ox/src/ox/std/pair.hpp vendored Normal file
View File

@ -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<typename T, typename U = T>
struct Pair {
T a{};
U b{};
};
}

View File

@ -35,6 +35,7 @@
#include "memory.hpp" #include "memory.hpp"
#include "new.hpp" #include "new.hpp"
#include "optional.hpp" #include "optional.hpp"
#include "pair.hpp"
#include "point.hpp" #include "point.hpp"
#include "random.hpp" #include "random.hpp"
#include "realstd.hpp" #include "realstd.hpp"