[ox/std] Add Pair
This commit is contained in:
parent
8798d2d718
commit
1eac7e1e56
1
deps/ox/src/ox/std/CMakeLists.txt
vendored
1
deps/ox/src/ox/std/CMakeLists.txt
vendored
@ -113,6 +113,7 @@ install(
|
||||
memory.hpp
|
||||
new.hpp
|
||||
optional.hpp
|
||||
pair.hpp
|
||||
point.hpp
|
||||
random.hpp
|
||||
ranges.hpp
|
||||
|
19
deps/ox/src/ox/std/pair.hpp
vendored
Normal file
19
deps/ox/src/ox/std/pair.hpp
vendored
Normal 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{};
|
||||
};
|
||||
|
||||
}
|
1
deps/ox/src/ox/std/std.hpp
vendored
1
deps/ox/src/ox/std/std.hpp
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user