blob: ec8dedd4359326f5d760a0d80e368208639f9c57 (
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 <memory>
namespace vbench {
/**
* A Handler is a component to whom you can pass an object.
**/
template <typename T>
struct Handler
{
virtual void handle(std::unique_ptr<T> obj) = 0;
virtual ~Handler() {}
};
} // namespace vbench
|