aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/core/taintable.cpp
blob: 18455dc14569ebe60bcb3692eaa81006479d6432 (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 Yahoo. 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