blob: f1422773ba5ce225d31ff32257a98ce98d5aca9d [file] [log] [blame]
Éanna Ó Catháin20e58802018-12-04 10:29:06 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8namespace armnn
9{
10
11template<typename T>
Matthew Bentham9734f092022-05-16 12:04:58 +010012struct minimum
Éanna Ó Catháin20e58802018-12-04 10:29:06 +000013{
Matthew Bentham9734f092022-05-16 12:04:58 +010014 typedef T result_type;
15 typedef T first_argument_type;
16
Éanna Ó Catháin20e58802018-12-04 10:29:06 +000017 T
18 operator()(const T& input1, const T& input2) const
19 {
20 return std::min(input1, input2);
21 }
22};
23
24} //namespace armnn
25