| 1 |
#if 0 |
| 2 |
''' ' |
| 3 |
#endif |
| 4 |
|
| 5 |
#ifdef __cplusplus |
| 6 |
// These could be added as opaque types I guess. |
| 7 |
template <typename T> |
| 8 |
struct BuildHasherDefault; |
| 9 |
|
| 10 |
struct DefaultHasher; |
| 11 |
#endif |
| 12 |
|
| 13 |
#if 0 |
| 14 |
' ''' |
| 15 |
#endif |
| 16 |
|
| 17 |
|
| 18 |
#include <cstdarg> |
| 19 |
#include <cstdint> |
| 20 |
#include <cstdlib> |
| 21 |
#include <ostream> |
| 22 |
#include <new> |
| 23 |
|
| 24 |
template<typename K = void, typename V = void, typename Hasher = void> |
| 25 |
struct HashMap; |
| 26 |
|
| 27 |
template<typename T = void, typename E = void> |
| 28 |
struct Result; |
| 29 |
|
| 30 |
/// Fast hash map used internally. |
| 31 |
template<typename K, typename V> |
| 32 |
using FastHashMap = HashMap<K, V, BuildHasherDefault<DefaultHasher>>; |
| 33 |
|
| 34 |
using Foo = FastHashMap<int32_t, int32_t>; |
| 35 |
|
| 36 |
using Bar = Result<Foo>; |
| 37 |
|
| 38 |
extern "C" { |
| 39 |
|
| 40 |
void root(const Foo *a, const Bar *b); |
| 41 |
|
| 42 |
} // extern "C" |