aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/data/slime/nix_value.h
blob: a076ee1fdf022f806a3d0d46676e04e26c3b83de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "value.h"

namespace vespalib::slime {

/**
 * Class representing a value containing absolutely nothing.
 **/
class NixValue : public Value
{
private:
    static NixValue _invalid;
    static NixValue _instance;

    NixValue() {}
public:
    static Value *invalid() { return &_invalid; }
    static Value *instance() { return &_instance; }
};

} // namespace vespalib::slime