aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/global_cache.cpp
blob: cc95b3bf04b21760dfb2b4aebc0e59c1626ce817 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
// Created by thecharlesblake on 1/10/18.
//

#include "global_cache.h"


global_cache::global_cache(const sol_rules&) {}

bool global_cache::insert(const std::vector<pile>& pile_vec) {
    return u_set.insert(pile_vec).second;
}

bool global_cache::contains(const std::vector<pile>& pile_vec) {
    return u_set.count(pile_vec) > 0;
}