File: B3.cpp

package info (click to toggle)
immer 0.8.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,132 kB
  • sloc: cpp: 27,932; python: 534; makefile: 227; lisp: 175; sh: 114; javascript: 64
file content (28 lines) | stat: -rw-r--r-- 869 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// 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/map.hpp>
#include <immer/map_transient.hpp>

template <typename K,
          typename T,
          typename Hash = std::hash<K>,
          typename Eq   = std::equal_to<K>>
using test_map_t = immer::map<K, T, Hash, Eq, immer::default_memory_policy, 3u>;

template <typename K,
          typename T,
          typename Hash = std::hash<K>,
          typename Eq   = std::equal_to<K>>
using test_map_transient_t =
    immer::map_transient<K, T, Hash, Eq, immer::default_memory_policy, 3u>;

#define MAP_T test_map_t
#define MAP_TRANSIENT_T test_map_transient_t

#include "generic.ipp"