aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2020-10-20 20:46:13 +0100
committerMichele Di Giorgio <michele.digiorgio@arm.com>2020-10-21 16:33:38 +0000
commit763709dcd302f8ccacbdb84145eccb2ecf4e7a48 (patch)
treeea85c882801505f615892fa9ca531e257f575211
parentaae3410bfd58b9aeed4964856b84d7d555b91c3e (diff)
downloadComputeLibrary-763709dcd302f8ccacbdb84145eccb2ecf4e7a48.tar.gz
COMPMID-3599: Use tuple instead of pairs in backend function creation
Change-Id: I361f455c9c5e0b8a2316652b5b65d6691a9f153e Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4220 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--arm_compute/graph/backends/Utils.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arm_compute/graph/backends/Utils.h b/arm_compute/graph/backends/Utils.h
index 0322ec5fab..7d67f3b9e3 100644
--- a/arm_compute/graph/backends/Utils.h
+++ b/arm_compute/graph/backends/Utils.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 Arm Limited.
+ * Copyright (c) 2018-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -42,7 +42,7 @@ namespace backends
* @return A configured backend function
*/
template <typename FunctionType, typename FunctionNameType, typename... ParameterType>
-std::pair<std::unique_ptr<arm_compute::IFunction>, FunctionNameType> create_named_function(FunctionNameType name, ParameterType... args)
+std::tuple<std::unique_ptr<arm_compute::IFunction>, FunctionNameType> create_named_function(FunctionNameType name, ParameterType... args)
{
auto f = arm_compute::support::cpp14::make_unique<FunctionType>();
f->configure(std::forward<ParameterType>(args)...);
@@ -58,9 +58,9 @@ std::pair<std::unique_ptr<arm_compute::IFunction>, FunctionNameType> create_name
* @return A configured backend function
*/
template <typename FunctionType, typename FunctionNameType, typename MemoryManagerType, typename... ParameterType>
-std::pair<std::unique_ptr<arm_compute::IFunction>, FunctionNameType> create_named_memory_managed_function(FunctionNameType name,
- MemoryManagerType mm,
- ParameterType... args)
+std::tuple<std::unique_ptr<arm_compute::IFunction>, FunctionNameType> create_named_memory_managed_function(FunctionNameType name,
+ MemoryManagerType mm,
+ ParameterType... args)
{
auto f = arm_compute::support::cpp14::make_unique<FunctionType>(mm);
f->configure(std::forward<ParameterType>(args)...);