diff options
Diffstat (limited to 'arm_compute/graph/backends/Utils.h')
-rw-r--r-- | arm_compute/graph/backends/Utils.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arm_compute/graph/backends/Utils.h b/arm_compute/graph/backends/Utils.h index 4893340b4c..5f4e66c207 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,9 +42,10 @@ 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>(); + auto f = std::make_unique<FunctionType>(); f->configure(std::forward<ParameterType>(args)...); return std::make_pair(std::move(f), name); } @@ -58,11 +59,10 @@ 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); + auto f = std::make_unique<FunctionType>(mm); f->configure(std::forward<ParameterType>(args)...); return std::make_pair(std::move(f), name); } |