mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
|
//
|
||
|
// immer: immutable data structures for C++
|
||
|
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||
|
//
|
||
|
// This software is distributed under the Boost Software License, Version 1.0.
|
||
|
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||
|
//
|
||
|
|
||
|
#include <immer/table.hpp>
|
||
|
#include <immer/table_transient.hpp>
|
||
|
|
||
|
struct setup_t
|
||
|
{
|
||
|
template <typename T>
|
||
|
using table_transient = immer::table_transient<
|
||
|
T,
|
||
|
immer::table_key_fn,
|
||
|
std::hash<immer::table_key_t<immer::table_key_fn, T>>,
|
||
|
std::equal_to<immer::table_key_t<immer::table_key_fn, T>>,
|
||
|
immer::default_memory_policy,
|
||
|
immer::default_bits>;
|
||
|
|
||
|
template <typename T>
|
||
|
using table =
|
||
|
immer::table<T,
|
||
|
immer::table_key_fn,
|
||
|
std::hash<immer::table_key_t<immer::table_key_fn, T>>,
|
||
|
std::equal_to<immer::table_key_t<immer::table_key_fn, T>>,
|
||
|
immer::default_memory_policy,
|
||
|
immer::default_bits>;
|
||
|
};
|
||
|
#define SETUP_T setup_t
|
||
|
|
||
|
#include "generic.ipp"
|