aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/core/taintable.cpp
blob: a3d169ceb6334575b0df6ee0df0f351f7f870da3 (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
25
26
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "taintable.h"

namespace vbench {

namespace {

struct Untaintable : Taintable {
    Taint taint;

    const Taint &tainted() const override { return taint; }
    ~Untaintable() {}
};

Untaintable untaintable;

} // namespace vbench::<unnamed>

const Taintable &
Taintable::nil()
{
    return untaintable;
}

} // namespace vbench