1 | // |
2 | // immer: immutable data structures for C++ |
3 | // Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente |
4 | // |
5 | // This software is distributed under the Boost Software License, Version 1.0. |
6 | // See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt |
7 | // |
8 | |
9 | #include <immer/set.hpp> |
10 | #include <immer/heap/gc_heap.hpp> |
11 | #include <immer/refcount/no_refcount_policy.hpp> |
12 | |
13 | using gc_memory = immer::memory_policy< |
14 | immer::heap_policy<immer::gc_heap>, |
15 | immer::no_refcount_policy, |
16 | immer::gc_transience_policy, |
17 | false>; |
18 | |
19 | template <typename T, |
20 | typename Hash = std::hash<T>, |
21 | typename Eq = std::equal_to<T>> |
22 | using test_set_t = immer::set<T, Hash, Eq, gc_memory, 3u>; |
23 | |
24 | #define SET_T test_set_t |
25 | #include "generic.ipp" |
26 | |