blob: c202ecb5888345555817f2cbf6c18df578c2f7fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/stllike/hash_map.h>
/** A map from strings to strings where all storage are maintained internally
* a la perl assoc.arrays
*/
class Fast_StringMap
{
private:
typedef vespalib::hash_map<vespalib::string, vespalib::string> Map;
Map _backing;
public:
void Insert(const char* key, const char* value);
const char *Lookup(const char* key, const char* defval);
};
|