blob: 4b6265695ad0a076308d5cc1ae5c8c5f871f5c63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Yahoo. 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:
using Map = vespalib::hash_map<vespalib::string, vespalib::string>;
Map _backing;
public:
void Insert(const char* key, const char* value);
const char *Lookup(const char* key, const char* defval) const;
};
|