[Zion/Glacier] Add a HashMap to store process capabilities.
This commit is contained in:
parent
6756d25e5c
commit
6e227e1cf6
5 changed files with 271 additions and 31 deletions
|
|
@ -1,14 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "glacier/memory/move.h"
|
||||
|
||||
namespace glcr {
|
||||
|
||||
template <typename T, typename U>
|
||||
class Pair {
|
||||
public:
|
||||
Pair(const T& first, const U& second) : first_(first), second_(second) {}
|
||||
Pair(T&& first, U&& second) : first_(Move(first)), second_(Move(second)) {}
|
||||
T& first() { return first_; }
|
||||
U& second() { return second_; }
|
||||
|
||||
bool operator==(const Pair& other) {
|
||||
return other.first_ == first_ && other.second_ == second_;
|
||||
}
|
||||
|
||||
private:
|
||||
T first_;
|
||||
U second_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue